summaryrefslogtreecommitdiffstats
path: root/sys/isa
Commit message (Collapse)AuthorAgeFilesLines
* This commit should be a extensive NO-OP:phk1999-05-305-30/+107
| | | | | | | | | | | | | Reformat and initialize correctly all "struct cdevsw". Initialize the d_maj and d_bmaj fields. The d_reset field was not removed, although it is never used. I used a program to do most of this, so all the files now use the same consistent format. Please keep it that way. Vinum and i4b not modified, patches emailed to respective authors.
* Simplistic pnp support. Needs more ids to be added.dfr1999-05-301-1/+8
|
* No support for pnp yet.dfr1999-05-304-5/+20
|
* No support for pnp devices yet.dfr1999-05-301-1/+5
|
* * Add ivars for ISA pnp.dfr1999-05-306-12/+408
| | | | | | * Move isa_dma* declarations to isavar.h. * Add a method ISA_DELETE_RESOURCE() to the ISA interface. * Tidy up include protection defines.
* Stop the TSC from being used as timecounter on K5/step0 machines.phk1999-05-291-2/+3
|
* Fixed glitches (jumps) of about 1/HZ seconds for the i8254 timecounter.bde1999-05-281-20/+21
| | | | | | | | | | | | | | | | The old version only worked right when the time was read strictly more often than every 1/HZ seconds, but we only guarantee reading it every (1/HZ + epsilon) seconds. Part of rev.1.126-1.127 attempted to fix this but didn't succeed. Detect counter rollover using the heuristic from the old version of microtime() with additional complications for supporting calls from fast interrupt handlers. This works provided i8254 interrupts are not delayed by more than 1/(2*HZ) seconds. This needs more comments, and cleanups for the SMP case, and more testing of the SMP case before it is merged into RELENG_3. Tested by: jhay
* Allow a sio port with its flags set to DEBUGGER+LLCONSOLE to be used fordfr1999-05-281-2/+2
| | | | | gdb. This allows the sio probe for that port to be disabled which stops it from confusing the debugger.
* * Change device_add_child_after() to device_add_child_ordered() which isdfr1999-05-283-13/+21
| | | | | | | easier to use and more flexible. * Change BUS_ADD_CHILD to take an order argument instead of a place. * Define a partial ordering for isa devices so that sensitive devices are probed before non-sensitive ones.
* Use the resource apis to manipulate resources.dfr1999-05-222-10/+39
|
* Don't use BUS_WRITE_IVAR to manipulate resources.dfr1999-05-221-9/+10
|
* * Factor out the common code between the isa bus drivers for i386 and alpha.dfr1999-05-225-18/+540
| | | | | | | * Re-work the resource allocation code to use helper functions in subr_bus.c. * Add simple isa interface for manipulating the resource ranges which can be allocated and remove the code from isa_write_ivar() which was previously used for this purpose.
* Slight reorganization of internal interface in the keyboard controlleryokota1999-05-181-24/+25
| | | | driver.
* * Define a new static method DEVICE_IDENTIFY which is called to add devicedfr1999-05-142-2/+133
| | | | | | | | | | instances to a parent bus. * Define a new method BUS_ADD_CHILD which can be called from DEVICE_IDENTIFY to add new instances. * Add a generic implementation of DEVICE_PROBE which calls DEVICE_IDENTIFY for each driver attached to the parent's devclass. * Move the hint-based isa probe from the isa driver to a new isahint driver which can be shared between i386 and alpha.
* Fixed reset handling for motor off resets. I first fixed this togetherbde1999-05-111-2/+3
| | | | | | | with other reset handling in rev.1.83 but broke it in rev.1.120. The breakage didn't seem to cause any problems even on the system which had problems ("extra" interrupts and botched handling thereof) before rev.1.83. It only affects multi-floppy systems anyway.
* Adjust console stuff now that makedev is no longer a macro.dfr1999-05-101-2/+3
|
* For what it's worth, idelayed is declared as a volatile in the headers,peter1999-05-091-2/+2
| | | | and even though it's not used in this file make it a volatile here too.
* Remove hackish foot protection.. If you ask for an atkbd on an isa buspeter1999-05-091-17/+1
| | | | | rather than on the keyboard controller, you will get it.. (and shoot your feet)
* Make COM_ESP and COM_MULTIPORT compile for LINT. It might even work..peter1999-05-091-6/+6
|
* Optimize out a couple of places where com_addr() is used twice in a row,peter1999-05-091-27/+9
| | | | | | | although this is pretty trivial. devclass_get_softc() is a tad more expensive than the old com_addr() implementation. If Bruce is really worried about the cost of this, it could always be changed so that the softc pointer is stored in a local array again.
* Delete the #if'ed out old isa bus probe/attach routinespeter1999-05-091-73/+1
|
* Move opt_sio.h options to conf/options and activate in isa/sio.cpeter1999-05-091-2/+2
|
* Unconfuse DEV_MODULE() and DEV_DRIVER_MODULE() about the difference betweenphk1999-05-092-4/+4
| | | | a major number for a dev_t.
* add some amount of sanity to the way the gdb stuff finds its device.phk1999-05-091-9/+10
| | | | | | | | I'm not too happy about the result either, but at least it has less chance of backfiring. This particular feature could be called "a mess" without offending anybody.
* siocngetc & putc can be staticized.phk1999-05-091-7/+3
|
* Revive APM hooking code for i386 arch now that the same source file isyokota1999-05-091-3/+8
| | | | | used for both i386 and alpha (the code was in sys/i386/isa/psm.c, but was disabled when ported to alpha.)
* Move the declaration of the interrupt type from the driver structuredfr1999-05-088-25/+17
| | | | to the BUS_SETUP_INTR call.
* Print the child IRQ on it's identification line.peter1999-05-081-1/+3
|
* Brace initializers to avoid a warning.peter1999-05-081-16/+16
|
* GC unused #define id_physid id_scsiidpeter1999-05-081-7/+1
|
* Slightly increase the visibility of the isa_wrap_old_drivers() stuff. Itpeter1999-05-081-1/+4
| | | | would be a shame to pollute the new isa.c with the isa_device.h defs.
* Get rid of extern declarations on gdb stuff so systems compiled withoutmckusick1999-05-071-6/+9
| | | | | DDB will compile. Warn users that try to use GDB without specifying a GDB port in their configuration file.
* fix it so it compiles on alpha againmjacob1999-05-071-1/+5
|
* Continue where Julian left off in July 1998:phk1999-05-073-8/+8
| | | | | | | | | | | | | | Virtualize bdevsw[] from cdevsw. bdevsw() is now an (inline) function. Join CDEV_MODULE and BDEV_MODULE to DEV_MODULE (please pay attention to the order of the cmaj/bmaj arguments!) Join CDEV_DRIVER_MODULE and BDEV_DRIVER_MODULE to DEV_DRIVER_MODULE (ditto!) (Next step will be to convert all bdev dev_t's to cdev dev_t's before they get to do any damage^H^H^H^H^H^Hwork in the kernel.)
* Introduce two functions: physread() and physwrite() and use these directlyphk1999-05-071-17/+2
| | | | | | in *devsw[] rather than the 46 local copies of the same functions. (grog will do the same for vinum when he has time)
* Generalize to allow any serial port to be used as the GDB port.mckusick1999-05-071-21/+65
| | | | | | | | | Mark the GDB port in the config file with flags 0x80. Currently only the sio driver checks these flags and sets up a GDB port, but adding similar code to other serial drivers would be easy. For backward compatibility, if an sio port is marked as the console and no port is marked as the gdb port, the GDB port will be mapped to the console port. This hack should go away at some point.
* remove b_proc from struct buf, it's (now) unused.phk1999-05-061-2/+1
| | | | Reviewed by: dillon, bde
* Fix up a few easy 'assignment used as truth value' and 'suggest parenspeter1999-05-061-5/+5
| | | | | around && within ||' type warnings. I'm pretty sure I have not masked any problems here, I've committed real problem fixes seperately.
* The joypart() macro had a precedence bug. Add seatbelts for UNIT() too.peter1999-05-061-2/+2
|
* Disable FDC_YE - it's broken at present (breaking LINT) and awaiting somepeter1999-05-021-17/+26
| | | | | pccard fixups. Make DEVFS compile, it breaks LINT.
* s/static foo_devsw_installed = 0;/static int foo_devsw_installed;/.dt1999-04-281-1/+1
| | | | (Edited automatically)
* Suser() simplification:phk1999-04-272-6/+6
| | | | | | | | | | | | | | | | | | | 1: s/suser/suser_xxx/ 2: Add new function: suser(struct proc *), prototyped in <sys/proc.h>. 3: s/suser_xxx(\([a-zA-Z0-9_]*\)->p_ucred, \&\1->p_acflag)/suser(\1)/ The remaining suser_xxx() calls will be scrutinized and dealt with later. There may be some unneeded #include <sys/cred.h>, but they are left as an exercise for Bruce. More changes to the suser() API will come along with the "jail" code.
* Make the machdep.i8254_freq and machdep.tsc_freq sysctls modify thephk1999-04-251-1/+3
| | | | | | timecounter as well Asked for by: bde, jhay
* Modify the non-i386 version of disable_intr() and enable_intr() so that theydt1999-04-241-3/+3
| | | | don't produce a warning on every use.
* Revert part of 1.9; we don't need to reset the port after release now thatpeter1999-04-241-2/+1
| | | | the isa bus doesn't clear the hints at that point.
* Return the port size from the probe.peter1999-04-221-2/+3
| | | | | "ppc0 at port 0x378 irq 7 drq 3 on isa0" becomes "ppc0 at port 0x378-0x37f irq 7 drq 3 on isa0"
* oops, SMP was missing includes for a typedef.peter1999-04-211-2/+2
|
* Stage 1 of a cleanup of the i386 interrupt registration mechanism.peter1999-04-212-19/+15
| | | | | | | Interrupts under the new scheme are managed by the i386 nexus with the awareness of the resource manager. There is further room for optimizing the interfaces still. All the users of register_intr()/intr_create() should be gone, with the exception of pcic and i386/isa/clock.c.
* Make the bt isa driver work..peter1999-04-181-5/+11
| | | | | | | | | | | - fix cut/paste problem. :-) - don't forget to call isa_dmacascade() - reset the port after we release resources. That last one is a trap to watch out for.. The isa bus driver uses the same port/irq/mem/etc variables for the initial probe hints as it does for allocation/deallocation tracking. Releasing a resource clears the variable and then you loose the hint during attach.. (ouch!)
* Implement an EISA new-bus framework. The old driver probe mechanismpeter1999-04-181-68/+127
| | | | | | | | | had a quirk that made a shim rather hard to implement properly and it was just easier to convert the drivers in one go. The changes to the buslogic driver go beyond just this - the whole driver was new-bus'ed including pci and isa. I have only tested the EISA part of this so far. Submitted by: Doug Rabson <dfr@nlsystems.com>
OpenPOWER on IntegriCloud