summaryrefslogtreecommitdiffstats
path: root/sys/isa
Commit message (Collapse)AuthorAgeFilesLines
* sioprobe: Don't try to initialize disabled ports. In particular,grog1999-06-191-2/+4
| | | | | | | attempting to initialize sio3 caused problems with ATI video boards, which cleverly share the I/O space. PR: kern/12295
* COM_LLCONSOLE should over-ride COM_DEBUGGER request.mckusick1999-06-151-2/+2
|
* Quieten the bt_isa_probe() messages since they get a bit much whenpeter1999-06-031-3/+4
| | | | the isa probe has gone hunting for a card on it's own.
* Fix PS/2 MouseMan+ protocol. We have been looking at a wrong placeyokota1999-06-031-2/+2
| | | | for the sign bit for roller movement!
* * Change include file locations.dfr1999-05-312-13/+18
| | | | | * Fix some misunderstandings about the return value of resource_int_value(). * Make it build on alpha (doesn't work yet...)
* Remove fd driver from its old home and change files which include rtc.hdfr1999-05-311-2/+2
| | | | to account for its new location.
* Simplify cdevsw registration.phk1999-05-311-16/+4
| | | | | | | | | | | | | | | | | | | | | | | | | The cdevsw_add() function now finds the major number(s) in the struct cdevsw passed to it. cdevsw_add_generic() is no longer needed, cdevsw_add() does the same thing. cdevsw_add() will print an message if the d_maj field looks bogus. Remove nblkdev and nchrdev variables. Most places they were used bogusly. Instead check a dev_t for validity by seeing if devsw() or bdevsw() returns NULL. Move bdevsw() and devsw() functions to kern/kern_conf.c Bump __FreeBSD_version to 400006 This commit removes: 72 bogus makedev() calls 26 bogus SYSINIT functions if_xe.c bogusly accessed cdevsw[], author/maintainer please fix. I4b and vinum not changed. Patches emailed to authors. LINT probably broken until they catch up.
* The PPSAPI group defines the polarity in draft 3, we guessed it wrong.phk1999-05-311-2/+2
|
* 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.
OpenPOWER on IntegriCloud