summaryrefslogtreecommitdiffstats
path: root/sys/dev/ep/if_ep_isa.c
Commit message (Collapse)AuthorAgeFilesLines
* o break newbus api: add a new argument of type driver_filter_t topiso2007-02-231-2/+2
| | | | | | | | | | | | | bus_setup_intr() o add an int return code to all fast handlers o retire INTR_FAST/IH_FAST For more info: http://docs.freebsd.org/cgi/getmsg.cgi?fetch=465712+0+current/freebsd-current Reviewed by: many Approved by: re@
* Make a pass and cleanup the printfs from this driver.imp2005-07-011-11/+7
| | | | Approved by: re (scottl) blanket ep
* o When calling ep_get_macaddr(), provide it a local buffer. Add a commentimp2005-06-261-2/+2
| | | | | | | | | that says why we do this (or rather, explains that it is some voodoo magic that's poorly understood). The local buffer fixes the crash on attach. o Rename get_e() to ep_get_e() to avoid namespace pollution. Submitted by: mux Approved by: re (scottl)
* u_intXX_t -> uintXX_t while I'm here.imp2005-01-201-19/+19
|
* Start each of the license/copyright comments with /*-, minor shuffle of linesimp2005-01-061-1/+1
|
* Remove duplicate $FreeBSD$imp2004-07-221-3/+0
| | | | Noticed by: njl
* Pass sc to GO_WINDOW macro.imp2003-10-261-1/+1
| | | | | | Use SET_IRQ for pccard case, rather than exapnding it inline. Requested by: mdodd
* Whole grab-bag of changes:imp2003-10-251-1/+1
| | | | | | | | o Make the driver MPSAFE o Some changes due to diff reduction effort with vx. o Removed some obsolete junk. Reviewed by: sam, modd
* Transition to using bus_space macros rather than the inb/outb/etc.imp2003-10-181-1/+1
| | | | | | | | | | | | Use EP_{READ,WRITE}{,_MULTI}_{1,2,4} instead. I've had several people submit patches like this over the years of varying qualities, markm being the last. The names were chosen in consulation with mdodd on irc. I've tested this with only PCMCIA cards: 3CCE589EC and 3CCSH572BT. I've not tried with my more extensive ISA, EISA and cbus collection. Reviewed by: mdodd
* Style fixes of the whitespace variety. Fix long lines and tabs.markm2003-08-301-10/+18
|
* Use __FBSDID().obrien2003-08-241-0/+3
| | | | Also some minor style cleanups.
* Style(9) cleanup. There was no consistent style in this driver, andmarkm2003-07-171-129/+109
| | | | | | | The next round of commits will be to fix up locking in it. This lot is to at least give a consistent base to work off. OK'ed by: imp, mdodd
* - Free interrupt handler in ep_free().mdodd2003-03-291-0/+1
| | | | | - Move ep_pccard_detach() to if_ep.c and rename to ep_detach() - Specify detach methods for all bus frontends.
* Checksum the configuration EEPROM.mdodd2003-03-291-0/+43
|
* Register dependency on the elink module.mdodd2003-03-291-0/+3
|
* Fix compilation on non-i386 machines. Inconsistent conditionalmarcel2003-02-231-3/+5
| | | | compilation yielded definitions that we're used.
* Bandaid the bits that use the elink_foo() functions which aremdodd2003-02-131-1/+9
| | | | i386 only at this point.
* Fixed to support 3Com 3C569B for PC-98.nyan2000-12-091-0/+8
| | | | Submitted by: "Hirokazu WATANABE" <gwna@geocities.co.jp>
* Remove unneeded #include <machine/clock.h>phk2000-10-151-1/+0
|
* Remove 7 unnecessary includes frmo phk's scriptimp2000-09-201-1/+0
|
* Properly detect ISA cards in EISA mode and skip them in the ISA identifymdodd2000-07-181-2/+10
| | | | | | routine so that they will be picked up by the EISA front end. PR: i386/2598
* Fix a bug in the last commit. >> 4 instead of >> 8. *bap*mdodd2000-01-231-6/+6
| | | | | | | | | | | Fix a long-standing bug where I used a 'break;' instead of a 'continue;'; you had to have multiple ISA boards in non-PnP mode with an 'unknown' board with a lower MAC address to find this one. Since I have 4 3c5x9 boards in my test box I was somewhat confused when this happened. :) Make the messages printed by ep_isa_identify() a little more consistent; we'll only see them in verbose boot mode but it makes me feel better if they look nice.
* Add the ID for the 3c509-TPC.mdodd2000-01-231-0/+12
| | | | | | | | Also, while I'm here, add a mechanism to catch unknown board IDs that are likely to be 3c509s and allow them to be attached. PR: kern/16304 Submitted by: Kelly Yancey <kbyanc@posi.net>
* Whitespace cleanups.mdodd1999-12-061-4/+4
|
* Add a delay (per the databook) to the get_eeprom_data() loop somdodd1999-12-061-9/+12
| | | | | | | that the read EEPROM command has time to execute. I didn't observe any difference in behavior on my test system but this is the documented "correct behavior".
* Standardize device descriptions so that there is parity between PnPmdodd1999-12-061-10/+10
| | | | descriptions and non-PnP descriptions.
* Correctly implement the non-PnP enumeration of ISA board.mdodd1999-12-061-14/+36
| | | | | | | | | | | | | | | We now correctly skip boards that have PnP support enabled, or are in test mode. The 3c509s support a number of combinations of device probing, as per the databook. - ISA only - PnP only - ISA or PnP We will allow cards that can be dealt with by PnP to be attached by the PnP enumerator. This fixes the bogus detection of boards at weird ioports.
* HEADS UP! All 3c5x9 users!mdodd1999-10-271-260/+232
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | - Rip out all the static softc stuff and do softc allocation the right way. - Rewrite most of the ISA code so that it provides a DEVICE_IDENTIFY method to enumerate all non-PnP ISA devices. This has the following consequences: - No 'ep' devices may be hardwired. - All hardwired devices will probably be detected twice. By hardwired I mean: device ep0 at isa? port 0x300 irq 10 - 'ep' devices are ordered by bus, slot, and then MAC address. - Make 3c509B cards work in PnP mode. Yes, they really work. - Convert over to using ifmedia for media selection. No more of this lame 'linkX' stuff. - Consolidate a lot of duplicated code. - Make a stab at not breaking MII based PCCARD devices. I doubt that the PCCARD stuff works any more than it did before my changes but theres hope. My PCCARD hardware should arrive in a week or so. - Retreive the media settings from the card EEPROM rather than guessing. I've got a 3c509-TPO that thinks its got an AUI port and if others can report similar problems I'll write a bit of clever code that will fix this but right now it works correctly on all but 1 card. - Clean up a few things and make some cosmetic changes. - Add myself as the MAINTAINER since nobody else wants to. I'm in the best position to do this as I've got an example of most of the cards: EISA 3c579 bnc/aui MCA 3c529 tp/aui ISA 3c509 tpo ISA-PnP 3c509B combo If someone wants to send me a any cards I don't have I'd appriciate it. Also welcome are 3c59x boards since I'll be folding if_vx and if_ep at some point.
* - Split out the ISA and PCCARD specific code.mdodd1999-09-261-0/+344
- Split out the prototypes, externs and struct decls from if_epreg.h into if_epvar.h. - Add support for MCA based Etherlink III (3c529) devices. None of this code is used right now; the old if_ep driver is still in place and used. I will eventually get around to converting if_ep_isa.c to newbus once I've had a talk with Peter and DFR about the DEVICE_IDENTIFY() method. I have tested this code on my PS/2. It works. I would like EISA and ISA testers since my example hardware hasn't arrived yet. Add: dev/ep/if_ep.c optional ep dev/ep/if_ep_isa.c optional ep isa dev/ep/if_ep_eisa.c optional ep eisa dev/ep/if_ep_mca.c optional ep mca dev/ep/if_ep_pccard.c optional ep card to sys/conf/files Remove: i386/eisa/3c5x9.c optional ep i386/isa/if_ep.c optional ep from sys/i386/conf/files.i386 PCCARD testers wanted! I will switch off and cvs rm the old driver in favor of this copy once I've had positive feedback or have the hardware to verify that it works.
OpenPOWER on IntegriCloud