summaryrefslogtreecommitdiffstats
path: root/sys/dev/eisa
Commit message (Collapse)AuthorAgeFilesLines
* $Id$ -> $FreeBSD$peter1999-08-282-2/+2
|
* I'm not sure how this wasn't in the last commit but anyhow...mdodd1999-08-021-2/+2
| | | | 'int irq' -> 'struct irq_node *irq'
* Move the specification of EDGE/LEVEL triggered interrupts tomdodd1999-08-012-16/+32
| | | | | | | | | | | | | | | | | eisa_add_intr() which now takes an additional arguement (one of EISA_TRIGGER_LEVEL or EISA_TRIGGER_EDGE). The flag RR_SHAREABLE has no effect when passed to bus_alloc_resource(dev, SYS_RES_IRQ, ...) in an EISA device context as the eisa_alloc_resource() call (bus_alloc_resource method) now deals with this flag directly, depending on the device ivars. This change does nothing more than move all the 'shared = inb(foo + iobsse)' nonesense to the device probe methods rather than the device attach. Also, print out 'edge' or 'level' in the IRQ announcement message. Reviewed by: dfr
* Restore the pre-new_bus behavior of printing out the reserved resourcesmdodd1999-07-301-5/+95
| | | | | | during device announcement. (irq, ioport, maddr) Reviewed by: dfr, peter
* Alter the behavior of sys/kern/subr_bus.c:device_print_child()mdodd1999-07-291-5/+10
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | - device_print_child() either lets the BUS_PRINT_CHILD method produce the entire device announcement message or it prints "foo0: not found\n" Alter sys/kern/subr_bus.c:bus_generic_print_child() to take on the previous behavior of device_print_child() (printing the "foo0: <FooDevice 1.1>" bit of the announce message.) Provide bus_print_child_header() and bus_print_child_footer() to actually print the output for bus_generic_print_child(). These functions should be used whenever possible (unless you can just use bus_generic_print_child()) The BUS_PRINT_CHILD method now returns int instead of void. Modify everything else that defines or uses a BUS_PRINT_CHILD method to comply with the above changes. - Devices are 'on' a bus, not 'at' it. - If a custom BUS_PRINT_CHILD method does the same thing as bus_generic_print_child(), use bus_generic_print_child() - Use device_get_nameunit() instead of both device_get_name() and device_get_unit() - All BUS_PRINT_CHILD methods return the number of characters output. Reviewed by: dfr, peter
* Add a hook for a bus to detect child devices which didn't find drivers.dfr1999-07-111-2/+21
| | | | | | This allows the bus to print an informative message about unknown devices. Submitted by: Matthew N. Dodd <winter@jurai.net>
* Handle suspend/resume methodspeter1999-06-221-1/+3
| | | | Obtained from: Warner Losh <imp@freebsd.org>
* Fix a [start,end] vs [start,count] botch that corrupted the resourcepeter1999-05-241-3/+3
| | | | | | | | manager and prevented IOPort allocation beyond the first EISA slot from working. subr_rman.c should have trapped this on the way into the system rather than tripping over the wreckage. Head banged into wall repeatedly by: "Matthew N. Dodd" <winter@jurai.net>
* Don't detect an EISA bus unless we see a "card" there somewhere. An EISApeter1999-05-181-2/+10
| | | | | | | | motherboard will have a card for the "motherboard" on slot 0. eisa0: <EISA bus> on motherboard mainboard0: <ASU5101 (System Board)> at slot 0 on eisa0 This should stop the probe "detecting" an EISA bus everywhere that has a 'controller eisa0' line regardless of whether it's really there.
* Move the declaration of the interrupt type from the driver structuredfr1999-05-081-3/+1
| | | | to the BUS_SETUP_INTR call.
* Use consistant function definitions which also silences a warning.peter1999-05-061-20/+8
|
* GC some now unused (and #if 0) code.peter1999-04-191-321/+3
|
* EISA can (or will) be a child of the i386 nexus on non-PCI systems.peter1999-04-191-1/+2
|
* Set the bus description for EISA, like it is for ISA.peter1999-04-191-2/+3
|
* Implement an EISA new-bus framework. The old driver probe mechanismpeter1999-04-182-234/+357
| | | | | | | | | 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>
* Replace includes of <sys/kernel.h> with includes ofjdp1999-01-141-2/+2
| | | | | <sys/linker_set.h> in those files that use only the linker set definitions.
* Examine all occurrences of sprintf(), strcat(), and str[n]cpy()archie1998-12-041-3/+3
| | | | | | | | | | | | | | for possible buffer overflow problems. Replaced most sprintf()'s with snprintf(); for others cases, added terminating NUL bytes where appropriate, replaced constants like "16" with sizeof(), etc. These changes include several bug fixes, but most changes are for maintainability's sake. Any instance where it wasn't "immediately obvious" that a buffer overflow could not occur was made safer. Reviewed by: Bruce Evans <bde@zeta.org.au> Reviewed by: Matthew Dillon <dillon@apollo.backplane.com> Reviewed by: Mike Spengler <mks@networkcs.com>
* Fix list corruption and memory leak that could occur whengibbs1998-05-141-2/+6
| | | | releasing EISA irqs.
* Staticize.eivind1998-02-091-4/+4
|
* Remove a bunch of variables which were unused both in GENERIC and LINT.phk1997-11-071-6/+1
| | | | Found by: -Wunused
* Removed unused #includes.bde1997-10-281-4/+1
|
* Add shared EISA interrupt support.gibbs1997-09-212-85/+106
| | | | Clean up the match routines so that they return const char *
* #include <machine/limits.h> explicitly in the few places that it is required.bde1997-08-211-1/+3
|
* Add several casts and include several header files to eliminate compilerfsmp1997-08-211-1/+4
| | | | warnings.
* Removed unused #includes.bde1997-07-201-3/+1
|
* Various stylistic improvements regarding num_eisa_slots & co.:joerg1997-03-132-8/+10
| | | | | | | . properly declare the variable in in a .h file, as opposed to using a private extern declaration in userconfig.c; . move the definition of EISA_SLOTS and therefore the inclusion of opt_eisa.h into eisaconf.c.
* Since i don't see that anybody is implementing a more correct EISAjoerg1997-03-121-1/+5
| | | | | | | probing anytime soon, make EISA_SLOTS a fully supported option. It's required for the HP NetServer LC series machines. Next stop: make dset(8) aware of it as well.
* Back out part 1 of the MCFH that changed $Id$ to $FreeBSD$. We are notpeter1997-02-222-2/+2
| | | | ready for it yet.
* Make the long-awaited change from $Id$ to $FreeBSD$jkh1997-01-142-2/+2
| | | | | | | | This will make a number of things easier in the future, as well as (finally!) avoiding the Id-smashing problem which has plagued developers for so long. Boy, I'm glad we're not using sup anymore. This update would have been insane otherwise.
* Add a small hack to UserConfig that allows to override the number ofjoerg1996-12-141-2/+5
| | | | | | | | | | | | | | | | EISA slots to probe. This is mainly intended to allow installing the system on an HP Netserver with an on-board AIC7xxx EISA SCSI controller, that is sitting on EISA slot # 11. Documentation updates explaining this hack will follow shortly. Note that this can go away again as soon as the EISA device probing is more intelligent about the address space clash with the PCI address space. 2.2 candidate. Not objected by: freebsd-core :)
* Removed more devconf leftovers.bde1996-09-101-2/+2
|
* Various cleanups for remanents of devconf.phk1996-09-082-15/+2
|
* Remove devconf, it never grew up to be of any use.phk1996-09-062-125/+8
|
* Don't depend in the kernel on the gcc feature of doing arithmetic onbde1996-08-311-14/+14
| | | | pointers of type `void *'. Warn about this in future.
* Clean up -Wunused warnings.gpalmer1996-06-121-3/+1
| | | | Reviewed by: bde
* Turn on SCB paging for aic7770 chips rev E or greater.gibbs1996-04-202-13/+33
| | | | Update my copyrights.
* Removed unused declaration of bootverbose.bde1996-04-071-2/+1
|
* aha1742.c:gibbs1996-03-101-4/+4
| | | | | | | | | Cleanse the SCSI subsystem of its internally defined types u_int32, u_int16, u_int8, int32, int16, int8. Use the system defined *_t types instead. eisaconf.c: Cosmetic formatting chagnes.
* 3c5x9.c:gibbs1996-02-261-2/+2
| | | | | | | | | | | | | The eisaconf probe for the 3Com 3c579 and the 3c509 when in eisa configuration mode. aha1742.c aic7770.c bt74x.c: Only call eisa_registerdev after the probe is successfully. eisaconf.c: Increase kdc->kdc_datalen during the eisa_reg* functions instead of in the eisa_add* functions since eisa_registerdev has already been called and we have a kdc to manipulate.
* Free the externalizing buffer.gibbs1996-01-311-2/+5
|
* aha1742.c aic7770.c bt74x.cgibbs1996-01-311-7/+76
| | | | | | | | - Call eisa_registerdev as soon as we have a device match. This allows the "eisa_add_*" routines to tweak kdc_datalen as the kdc grows and shrinks. eisaconf.c - externalize the linked lists that hold our ioaddrs and maddrs.
* Fix a bunch of spelling errors in the comment fields ofmpp1996-01-301-2/+2
| | | | a bunch of system include files.
* Another pass through eisaconf. Ioaddrs and Maddrs are link lists now.gibbs1996-01-292-74/+305
| | | | | | The Bt driver is the only one that actually registers multiple addresses. Probe output is formatted to 80 columns.
* The long awaited stability patch set for the aic7xxx driver:gibbs1996-01-031-2/+2
| | | | | | | | | | aic7770.c: Simplify the initialization of adapters by pulling all card specific initialization to the card specific modules. eisaconf.c: outb 0x80 instead of 0xc80. The top byte is truncated anyway, and 0x80 was what was intended.
* Staticize and cleanup.phk1995-12-101-13/+2
| | | | Make debug variable sysctl aware in 1742.
* Don't staticize again (twice).bde1995-11-291-4/+5
| | | | Cleaned up includes.
* Staticize again.phk1995-11-291-2/+2
|
* Completed function declarations and/or added prototypes.bde1995-11-211-1/+2
|
* Mega commit for sysctl.phk1995-11-202-19/+10
| | | | | | Convert the remaining sysctl stuff to the new way of doing things. the devconf stuff is the reason for the large number of files. Cleaned up some compiler warnings while I were there.
* Modify the kdc_description for eisa0 to include the system board ID.gibbs1995-11-101-9/+25
| | | | | Add the mainboard_drv into the eisa driver linker set so that you can compile eisa0 into your kernel without any other eisa devices.
OpenPOWER on IntegriCloud