summaryrefslogtreecommitdiffstats
path: root/sys/dev/exca
Commit message (Collapse)AuthorAgeFilesLines
* sys: use our roundup2/rounddown2() macros when param.h is available.pfg2016-04-211-1/+1
| | | | | | | | | | rounddown2 tends to produce longer lines than the original code and when the code has a high indentation level it was not really advantageous to do the replacement. This tries to strike a balance between readability using the macros and flexibility of having the expressions, so not everything is converted.
* CardBus instead of cardbus.imp2010-01-031-1/+1
|
* __LP64__ is what's defined, not _LP64_, according to the manual (andimp2009-03-091-1/+1
| | | | also experience).
* fix spelling errorimp2009-02-061-1/+1
| | | | Submitted by: trasz
* Don't check for mapping above 4GB on 32-bit platforms.imp2009-02-051-0/+2
|
* Add some additional debugging for the memory code.imp2009-02-051-13/+18
|
* First cut at fixing memory mapping botch. Nobody must use the ray(4)imp2009-01-051-16/+29
| | | | | | driver since it couldn't have worked with NEWCARD w/o these fixes. This should allow selecting 16-bit memory width as well (which was what was broken).
* - Fix exca_(io|mem)_map() to return proper errno values.jhb2007-03-231-20/+21
| | | | | | | | | | - Change exca_activate_resource() to call BUS_ACTIVATE_RESOURCE() before calling exca_(io|mem)_map() since the latter use rman_get_bus(tag|handle) and the recent changes to nexus(4) mean that you need to activate a resource before reading the bus tag and handle. This was true before, but now the nexus(4) drivers on x86 and ia64 are more forceful about it. Reviewed by: imp
* exca->pccarddev should always be non-null now. Only call it when theimp2007-02-241-1/+1
| | | | device is actually attached.
* It turns out that it is easier to not NULL out pccard and cardbusimp2007-02-151-1/+1
| | | | | | | | device pointers. They don't change as the children device drivers come and go. Rather, check to see if the device is attached where we would have checked ! NULL. This solves many asymmetries in the code that likely could lead to crashes when loading/unloading cbb without one or more of the expected children's driver not present.
* Cleanup sloppy ifdef.imp2006-09-241-5/+1
|
* The TOPIC97 and TOPIC100 seem to have a special register in the excaimp2006-08-121-0/+6
| | | | | | | space that enables low voltage operation (and maybe other stuff). Enable the bits in this register so low voltage 16-bit cards may work. Existance noticed in NetBSD driver.
* Don't dereference an uninitialized pointer.imp2006-03-091-1/+4
|
* Set the name of the chipset foundimp2005-10-191-3/+3
|
* Minor commentary correctionimp2005-10-171-3/+3
|
* MFP4: Minor tweaks.imp2005-10-141-1/+5
|
* 'PC Card' instead of other variantsimp2005-09-221-2/+2
|
* Properly calculate the offset in mapping the memory of pccards. Thisimp2005-01-111-5/+6
| | | | | | | | allows my 3com cards to work again. It appears that this code was once there, but I removed it when I added the alignment issues. MFC After: 5 days PR: 70639 (and likely others)
* Start each of the license/copyright comments with /*-, minor shuffle of linesimp2005-01-063-3/+3
|
* Didn't intend to commit debugging code enabledimp2004-08-161-1/+0
|
* Other part of the cbb isa/pci split. This likely is causing problemsimp2004-08-152-10/+76
| | | | wrt cbb module.
* Card type stuff was backwards, so assume io for the moment. mem needsimp2003-10-071-6/+2
| | | | a lot of help and with luck bms will help me fix that.
* CARDMEM is the offset of the address ON THE CARD (eg which page).imp2003-09-241-1/+1
| | | | | | Instead, use EXCA_MEMREG_WIN_SHIFT which is the amount we shift the bus address by to write into upper memory (eg above 24MB). Use the latter in this case.
* When we went to the set_flags interface for the memory resource, weimp2003-08-291-4/+4
| | | | | | switched from PCCARD_MEM_FOO to PCCARD_A_MEM_FOO, yet we didn't change exca in all the right places. Do so now. Also use PCCARD_WIDTH_AUTO rather than the magic cookie 0.
* A number of minor fixes to the mapping of memory. This should helpimp2003-08-281-22/+18
| | | | | | | | | | | | | | | reading the CIS on some cards. However, not all just yet. This makes at least some of the xircom cards that weren't working to work. It doesn't make my home and away card work, however. o Don't get the card offset wrong. This is the biggest hassle for reading the CIS. The old code was just so wrong I can't believe that it worked at all. o Don't set the bit that allows/forces 16-bit memory access to the memory. It is hard coded with 0x80. o Don't need to slow down memory access with wait-states. OLDCARD didn't need them and it doesn't hurt anything. o remove bogus grousying in comment.
* Fix location of $FreeBSD$ from last commit.imp2003-08-271-4/+3
|
* Use __FBSDID().obrien2003-08-241-1/+3
| | | | Also some minor style cleanups.
* MFP4:imp2003-06-072-0/+88
| | | | Merge some common code from cbb into exca.
* Add two of three workarounds for interrupt storms for o2micro parts asimp2003-06-061-0/+7
| | | | | | | | | obtained from o2micro. These should only be needed for 'older' o2micro bridges (anything before the 7xxx series of bridges), but will work with the new bridges. # I don't plan on porting it to oldcard, but will happily commit to # oldcard if someone else needs them.
* Don't use return(foo(...)); in function returning void.phk2003-05-311-1/+1
| | | | Found by: FlexeLint
* Massive overhaul of exca to help with the isa efforts:imp2003-02-143-64/+240
| | | | | | | | | | | o chip_name arrays ifdef'd out. o use the OLDCARD-like get/put functions so we can support differnt types of mappings. o Write the beggings of is this a valid exca device and introduce more chipset support. # this is partially a wip, but also needed because some other cahnges I've # made require some of these changes.
* Do not return(foo()) in void function.semenu2002-12-181-1/+1
| | | | | Submitted by: marius@alchemy.franken.de MFC after: 3 days
* Update comments to remind me about power bugs in oldcard.imp2002-10-071-1/+4
|
* MFp4:imp2002-07-263-20/+25
| | | | | | | | | o Protect .h against multiple includes. o eliminate the pointers to the read/write routines. The bus_space_read routines can cope since we have the offset field. o Print a warning if the requested map address is > 16M and your chipset doesn't support the extended ExCA registers.
* Fix a couple of places where preprocessor concatination was misused andalfred2002-06-011-2/+2
| | | | something wound up grafted to a comma.
* Make oldcard and newcard kernel module work.takawata2002-05-301-0/+9
|
* Default debugging to OFF now.imp2002-02-041-1/+0
|
* First draft of common code between pccbb and pcic drivers for talkingimp2002-01-293-0/+1155
to ExCA register sets. These registers exist in both ISA and PCI devices in a couple different ways, and this will provide a common base for future building. This code is a rehash of the pccbb 16-bit code, which was a rehash of the pcic code, which was a rehash of the netbsd i82365 code. More hashing to come.
OpenPOWER on IntegriCloud