summaryrefslogtreecommitdiff
path: root/sys/dev/eisa
AgeCommit message (Collapse)Author
2017-02-16Remove EISA bus support for add-in cards. Remove related kernel andWarner Losh
compile options. Remove doxygen pointers to now deleted files. Remove EISA and VME as examples in bus_space.9. Retained EISA mode code for IO PIC and MPTABLES because that's not EISA bus, per se, and some people have abused EISA to mean "EISA-like behavior as opposed to ISA" rather than using it for EISA add-in cards. Relnotes: yes Notes: svn path=/head/; revision=313839
2016-02-20Introduce a RMAN_IS_DEFAULT_RANGE() macro, and use it.Justin Hibbits
This simplifies checking for default resource range for bus_alloc_resource(), and improves readability. This is part of, and related to, the migration of rman_res_t from u_long to uintmax_t. Discussed with: jhb Suggested by: marcel Notes: svn path=/head/; revision=295832
2016-01-27Convert rman to use rman_res_t instead of u_longJustin Hibbits
Summary: Migrate to using the semi-opaque type rman_res_t to specify rman resources. For now, this is still compatible with u_long. This is step one in migrating rman to use uintmax_t for resources instead of u_long. Going forward, this could feasibly be used to specify architecture-specific definitions of resource ranges, rather than baking a specific integer type into the API. This change has been broken out to facilitate MFC'ing drivers back to 10 without breaking ABI. Reviewed By: jhb Sponsored by: Alex Perez/Inertial Computing Differential Revision: https://reviews.freebsd.org/D5075 Notes: svn path=/head/; revision=294883
2011-11-22- There's no need to overwrite the default device method with the defaultMarius Strobl
one. Interestingly, these are actually the default for quite some time (bus_generic_driver_added(9) since r52045 and bus_generic_print_child(9) since r52045) but even recently added device drivers do this unnecessarily. Discussed with: jhb, marcel - While at it, use DEVMETHOD_END. Discussed with: jhb - Also while at it, use __FBSDID. Notes: svn path=/head/; revision=227843
2009-06-11strict kobj signatures: fix assortment of bus_read_ivar implsAndriy Gapon
Reviewed by: imp, current@ Approved by: jhb (mentor) Notes: svn path=/head/; revision=194020
2005-08-01Make the eisa probe messages just like all the others in the system.Warner Losh
Make the eisa no match printf closer to pci. Notes: svn path=/head/; revision=148612
2005-03-17Now that the Adaptec 2842 has its own probe routine, no need to haveWarner Losh
a comment saying its probe routine needs to be fixed. Notes: svn path=/head/; revision=143759
2005-03-17Style(9) pass before some planned larger changes.Warner Losh
o return (foo); o if (a == NULL) in preference to if (!a) o () and {} reduction o minor indentation fixes Notes: svn path=/head/; revision=143758
2005-01-06Start each of the license/copyright comments with /*-, minor shuffle of linesWarner Losh
Notes: svn path=/head/; revision=139749
2004-08-16Remove outb to "prime" the EISA ID registers of each slot. This wasJustin T. Gibbs
only required to support probing of the Adaptec 284X VLB SCSI controller which becomes visible in EISA space if you perform these writes. 284X probing is moving to an ISA attachment. Notes: svn path=/head/; revision=133887
2004-08-03Use the slot, not an otherwise unused index variable as the probe offset.Nate Lawson
This passed testing because the variable happened to be 0 in most cases. Compile warning found by: David Syphers <dsyphers AT u.washington.edu> Notes: svn path=/head/; revision=133059
2004-08-03Change EISA probing to be less invasive. Instead of probing all slotsNate Lawson
unconditionally, stop after the first one (system board) if no EISA hardware is detected. This fixes a boot hang (i.e. Thinkpad) when ACPI is disabled. Also, split the probe code into a separate function and do some style cleanup. Note that the Adaptec 2842 VLB controller probe is broken by this change and will fail to probe. It should be fixed separately. Notes: svn path=/head/; revision=133044
2004-06-09When adding files to the repo, it is very important to not forgetWarner Losh
the cvs add function. Notes: svn path=/head/; revision=130275
2004-06-09Step 1 in moving EISA devices to kobj/newbus. Use kobj methods forWarner Losh
all of the interface between the driver and the bus. This will enable us to stop special casing eisa bus attachments in modules and treat them like we treat all other busses. In the longer run, we need to eliminate much (all?) of these interfaces and switch to using the standard bus_alloc_resource(), but that's not done right now. # I've not updated the modules to include eisa, etc, just yet Tested on: Compaq Proliant 3000/333 purchased for eisa work Notes: svn path=/head/; revision=130274
2003-08-24Use __FBSDID().David E. O'Brien
Also some minor style cleanups. Notes: svn path=/head/; revision=119418
2003-04-29Deprecate machine/limits.h in favor of new sys/limits.h.Alexander Kabaev
Change all in-tree consumers to include <sys/limits.h> Discussed on: standards@ Partially submitted by: Craig Rodrigues <rodrigc@attbi.com> Notes: svn path=/head/; revision=114216
2002-10-31Add tunable "hw.eisa_slots" to allow overriding the default numberPeter Wemm
of slots (10). Notes: svn path=/head/; revision=106229
2002-09-26Argh, isa(4), eisa(4) and mca(4) now attach to legacy(4) instead ofJohn Baldwin
nexus(4) in the case of machines w/o equivalent bridges on a PCI bus. Reported by: winter Pointy hat to: jhb Notes: svn path=/head/; revision=104015
2002-08-20- Use the __BUS_ACCESSOR macro for EISA_ACCESSOR insteadMaxime Henrion
of reimplementing it. - #undef EISA_ACCESSOR after use like we do for other accessors. Reviewed by: tmm Notes: svn path=/head/; revision=102177
2002-04-09GC various bits and pieces of USERCONFIG from all over the place.Poul-Henning Kamp
Notes: svn path=/head/; revision=94275
2002-03-20Remove __P.Alfred Perlstein
Notes: svn path=/head/; revision=92739
2001-02-09Unbreak EISA. The PCI-EISA bridge bus is named `eisab', not `isab'.Joerg Wunsch
This mistake seems to have been benign until very recently, probably until msmith's PCI code reshuffle which cleaned up a lot of things. Still, my AIC7770 doesn't work again, but it at least probes the EISA bus now. Notes: svn path=/head/; revision=72228
2001-02-04Mechanical change to use <sys/queue.h> macro API instead ofPoul-Henning Kamp
fondling implementation details. Created with: sed(1) Reviewed by: md5(1) Notes: svn path=/head/; revision=71999
2000-12-08Convert more malloc+bzero to malloc+M_ZERO.David Malone
Submitted by: josh@zipperup.org Submitted by: Robert Drehmel <robd@gmx.net> Notes: svn path=/head/; revision=69781
2000-05-26Back out the previous change to the queue(3) interface.Jake Burkholder
It was not discussed and should probably not happen. Requested by: msmith and others Notes: svn path=/head/; revision=60938
2000-05-23Change the way that the queue(3) structures are declared; don't assume thatJake Burkholder
the type argument to *_HEAD and *_ENTRY is a struct. Suggested by: phk Reviewed by: phk Approved by: mdodd Notes: svn path=/head/; revision=60833
2000-01-14Pre 4.0 tidy up.Peter Wemm
Collect together the components of several drivers and export eisa from the i386-only area (It's not, it's on some alphas too). The code hasn't been updated to work on the Alpha yet, but that can come later. Repository copies were done a while ago. Moving these now keeps them in consistant place across the 4.x series as the newbusification progresses. Submitted by: mdodd Notes: svn path=/head/; revision=55953
1999-12-03Remove the 'ivars' arguement to device_add_child() andMatthew N. Dodd
device_add_child_ordered(). 'ivars' may now be set using the device_set_ivars() function. This makes it easier for us to change how arbitrary data structures are associated with a device_t. Eventually we won't be modifying device_t to add additional pointers for ivars, softc data etc. Despite my best efforts I've probably forgotten something so let me know if this breaks anything. I've been running with this change for months and its been quite involved actually isolating all the changes from the rest of the local changes in my tree. Reviewed by: peter, dfr Notes: svn path=/head/; revision=54073
1999-10-11Delete unneeded #includePeter Wemm
Submitted by: phk Notes: svn path=/head/; revision=52120
1999-08-28$Id$ -> $FreeBSD$Peter Wemm
Notes: svn path=/head/; revision=50477
1999-08-02I'm not sure how this wasn't in the last commit but anyhow...Matthew N. Dodd
'int irq' -> 'struct irq_node *irq' Notes: svn path=/head/; revision=49382
1999-08-01Move the specification of EDGE/LEVEL triggered interrupts toMatthew N. Dodd
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 Notes: svn path=/head/; revision=49360
1999-07-30Restore the pre-new_bus behavior of printing out the reserved resourcesMatthew N. Dodd
during device announcement. (irq, ioport, maddr) Reviewed by: dfr, peter Notes: svn path=/head/; revision=49281
1999-07-29Alter the behavior of sys/kern/subr_bus.c:device_print_child()Matthew N. Dodd
- 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 Notes: svn path=/head/; revision=49195
1999-07-11Add a hook for a bus to detect child devices which didn't find drivers.Doug Rabson
This allows the bus to print an informative message about unknown devices. Submitted by: Matthew N. Dodd <winter@jurai.net> Notes: svn path=/head/; revision=48754
1999-06-22Handle suspend/resume methodsPeter Wemm
Obtained from: Warner Losh <imp@freebsd.org> Notes: svn path=/head/; revision=48100
1999-05-24Fix a [start,end] vs [start,count] botch that corrupted the resourcePeter Wemm
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> Notes: svn path=/head/; revision=47451
1999-05-18Don't detect an EISA bus unless we see a "card" there somewhere. An EISAPeter Wemm
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. Notes: svn path=/head/; revision=47308
1999-05-08Move the declaration of the interrupt type from the driver structureDoug Rabson
to the BUS_SETUP_INTR call. Notes: svn path=/head/; revision=46743
1999-05-06Use consistant function definitions which also silences a warning.Peter Wemm
Notes: svn path=/head/; revision=46601
1999-04-19GC some now unused (and #if 0) code.Peter Wemm
Notes: svn path=/head/; revision=45818
1999-04-19EISA can (or will) be a child of the i386 nexus on non-PCI systems.Peter Wemm
Notes: svn path=/head/; revision=45807
1999-04-19Set the bus description for EISA, like it is for ISA.Peter Wemm
Notes: svn path=/head/; revision=45804
1999-04-18Implement an EISA new-bus framework. The old driver probe mechanismPeter Wemm
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> Notes: svn path=/head/; revision=45791
1999-01-14Replace includes of <sys/kernel.h> with includes ofJohn Polstra
<sys/linker_set.h> in those files that use only the linker set definitions. Notes: svn path=/head/; revision=42654
1998-12-04Examine all occurrences of sprintf(), strcat(), and str[n]cpy()Archie Cobbs
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> Notes: svn path=/head/; revision=41514
1998-05-14Fix list corruption and memory leak that could occur whenJustin T. Gibbs
releasing EISA irqs. Notes: svn path=/head/; revision=36041
1998-02-09Staticize.Eivind Eklund
Notes: svn path=/head/; revision=33181
1997-11-07Remove a bunch of variables which were unused both in GENERIC and LINT.Poul-Henning Kamp
Found by: -Wunused Notes: svn path=/head/; revision=31016
1997-10-28Removed unused #includes.Bruce Evans
Notes: svn path=/head/; revision=30813