summaryrefslogtreecommitdiffstats
path: root/sys/arch/sh/dev (follow)
Commit message (Collapse)AuthorAgeFilesLines
* spellingjsg2021-03-111-3/+3
|
* Remove useless redundant call of ttyopen().jan2021-01-011-5/+1
| | | | | | Also remove dead DIALOUT macro. ok mpi@
* Remove almost unused `flags' argument of suser().mpi2018-02-191-3/+3
| | | | | | | The account flag `ASU' will no longer be set but that makes suser() mpsafe since it no longer mess with a per-process field. No objection from millert@, ok tedu@, bluhm@
* Delete unnecessary <sys/file.h> includesguenther2017-12-301-2/+1
| | | | ok millert@ krw@
* Fix the remaining ';;'s in sys/tom2017-06-221-2/+2
|
* Rename Debugger() into db_enter().mpi2017-04-301-2/+2
| | | | | | | Using a name with the 'db_' prefix makes it invisible from the dynamic profiler. ok deraadt@, kettenis@, visa@
* Sync no-argument function declaration and definition by adding (void).tobiasu2016-03-051-2/+2
| | | | | | Covers all of landisk/sh, per naddy's suggestion. ok on previous diff deraadt@ naddy@
* Use cons_decl() instead of rolling our own cn* prototypesmiod2011-04-301-6/+2
|
* Introduce a new pci routine, pci_conf_size(), which returns the size of amiod2010-12-042-2/+9
| | | | | | | given pcitag_t configuration address space. Currently, all pci controllers will return the usual 0x100 bytes of PCI configuration space, but this will eventually change on PCIe-capable controlers. ok kettenis@
* No "\n" needed at the end of panic() strings.krw2010-08-071-3/+3
| | | | | | | Bogus chunks pointed out by matthew@ and miod@. No cookies for marco@ and jasper@. ok deraadt@ miod@ matthew@ jasper@ macro@
* Move common code for waking up writers on a tty into a function.nicm2010-07-021-10/+4
| | | | ok deraadt matthew millert
* Allow tty drivers to request larger buffers at attach time using aderaadt2010-06-281-2/+2
| | | | | | | | max-baud-rate hint. Adjust TTYHOG (the nearly full logic) to this new situation. The larger buffers are required by the very high speed KDDI devices in Japan (CF com, or USB ucom) so those are the only two drivers which currently ask for a larger buffer size. ok yasuoka miod
* catch up to the ttyopen() changesderaadt2010-04-161-2/+2
|
* Some of the line disciplines want to check for suser. Better to pass themtedu2010-04-121-3/+3
| | | | a process instead of using curproc. ok deraadt
* OpenBSD uses bus_space_copy_#, not bus_space_copy_region_#. Make sure only themiod2010-04-042-14/+14
| | | | | | first name is used, and remove any #define foo_region foo compatibility defines. Also, on sparc64, do not provide a `raw' version of bus_space_copy.
* Implement bus_space_vaddr().miod2009-12-252-2/+9
|
* Every selwakeup() should have a matching KNOTE() (even if kqueue isn'tnicm2009-11-091-2/+1
| | | | | | | | | | supported it doesn't do any harm), so put the KNOTE() in selwakeup() itself and remove it from any occurences where both are used, except one for kqueue itself and one in sys_pipe.c (where the selwakeup is under a PIPE_SEL flag). Based on a diff from tedu. ok deraadt
* Use suser when possible. Suggested by miod@.fgsch2009-10-311-2/+2
| | | | miod@ deraadt@ ok.
* Add missing KNOTE() calls after selwakeup(), until we decide if the KNOTE()deraadt2009-10-311-1/+2
| | | | | | | calls can go directly into selwakeup() safely long discussion with nicm, murmers of consent from tedu and miod, noone else seems to care of kqueue is busted as long as it makes their sockets move data fast... pretty sad.
* Create the pci resource extents as covering the full 4GB address space,miod2009-07-261-5/+9
| | | | | with only the available range free, instead of that range only. ok kettenis@
* Get rid of pci_addr_fixup machinery; set up the appropriate extents and passkettenis2009-04-252-482/+11
| | | | | | them along when we attach pci(4). ok miod@
* Second pass of simple timeout_add -> timeout_add_sec conversionsblambert2008-10-151-2/+2
| | | | | | | This should take care of the simpler ones (i.e., timeout values of integer multiples of hz). ok krw@, art@
* More removal of clauses 3 and 4 from NetBSD licenses.ray2008-06-271-8/+1
| | | | OK deraadt@ and millert@
* First pass at removing clauses 3 and 4 from NetBSD licenses.ray2008-06-261-8/+1
| | | | | | | | | Not sure what's more surprising: how long it took for NetBSD to catch up to the rest of the BSDs (including UCB), or the amount of code that NetBSD has claimed for itself without attributing to the actual authors. OK deraadt@
* Cleanup cn_pri. Change constants to more meaningful names, rather thanjsing2008-01-231-3/+3
| | | | | | | the hp300 related ones currently in use. CN_NORMAL becomes CN_LOWPRI, CN_INTERNAL becomes CN_MIDPRI and CN_REMOTE becomes CN_HIGHPRI. ok miod@
* Remove unused shpcic_intr_establish() and friends.miod2007-07-111-67/+3
|
* Make pci subsystem aware of domains. Each host bridge gets assigned a uniquekettenis2006-12-141-1/+2
| | | | | | | | domain number such that we can distinguish between busses with the same bus number that are behind different host bridges. Domains can be accessed by using different device nodes. ok deraadt@
* serial drivers should use spltty, not splserial.drahn2006-11-201-25/+18
|
* landisk has no DCD line, so we must force TS_CARR_ON. This is a gruesomederaadt2006-11-091-1/+8
| | | | hack, otherwise the console tty is not quite right. Solve better someday.
* cleanup some devicesmickey2006-11-031-3/+2
|
* Do not match on non-shpcic config stanza.miod2006-10-231-1/+7
|
* Hack around a problem found on px-eh systems where the SH IPL+g initializesdrahn2006-10-191-1/+10
| | | | part of the PCI addresses, but not to values reasonable for us.
* pci_address_fixup code to do bus address allocation, 'firmware' appearentlydrahn2006-10-193-3/+509
| | | | doesn't touch pci. ohci version and re mac address probe correctly.
* pciide compat bits, stolen from armish.drahn2006-10-161-0/+64
|
* busname should be set.drahn2006-10-161-1/+2
|
* More bits in progress, adapted from NetBSD.miod2006-10-072-3/+242
|
* Preliminary bits for SuperH-based ports, based on NetBSD/sh3 codebase withmiod2006-10-067-0/+3242
minor changes.