aboutsummaryrefslogtreecommitdiff
path: root/sys/pccard/cardinfo.h
Commit message (Collapse)AuthorAgeFilesLines
* This directory is no logner needed after copy to usr.sbin/dumpcis.Warner Losh2009-02-151-205/+0
| | | | Notes: svn path=/head/; revision=188634
* Remove code describing pre 5.x systemWarner Losh2006-01-101-19/+0
| | | | Notes: svn path=/head/; revision=154163
* /* -> /*- for license, minor formatting changesWarner Losh2005-01-071-1/+2
| | | | Notes: svn path=/head/; revision=139825
* 1. Allow drivers to query CIS strings from OLDCARD.Warner Losh2003-04-231-0/+21
| | | | | | | | | | | | 2. Include backwards compatibility good for the moment (eventually will be turned off in current, but allow for a short transition period). PR: 51333 Submited by: Scott Mitchell (1) MFC after: 2 weeks Notes: svn path=/head/; revision=113946
* Copy manufacturer and version string into the kernel, and copy it toWarner Losh2002-07-221-1/+5
| | | | | | | | | the slot info. This brings OLDCARD's API much closer to NEWCARD and will allow moving more information into the kernel from pccard.conf for common drivers (ed). Notes: svn path=/head/; revision=100484
* Rearrange previous commit that passed the vendor id to the kernel in a wayWarner Losh2002-07-141-20/+20
| | | | | | | | | that's binary compatible for -stable. While binary compatibility doesn't matter much in -current, it is critical for -stable. This change requires pccardd/pccardc to be recompiled. Notes: svn path=/head/; revision=99943
* Add some code which is compatible for NEWCARD. It makes manufacturerTakeshi Shibagaki2002-02-201-0/+3
| | | | | | | | | id transfer from pccardd. Reviewed by: imp Notes: svn path=/head/; revision=90967
* Use spaces instead of hard tabs in the diagram.Warner Losh2001-07-281-14/+14
| | | | Notes: svn path=/head/; revision=80464
* Minor nits merged from my stable tree:Warner Losh2001-07-271-1/+0
| | | | | | | | | | | | | | | o kill blank line that I introduced in cardinfo.h o Delete unused variable wasinactive. o return 0 from pccard_resume. o Set the state and lastsate initially to be empty. o move comment above code for interrupt dispatching. o Powerstate interface is now available as of 430002, not 500000 (note that this change will be not 100% correct since the power state stuff didn't enter current until well after 500000, but it is good enough for the two branche we have going now). Notes: svn path=/head/; revision=80440
* Additional clarification.Warner Losh2001-07-271-1/+8
| | | | Notes: svn path=/head/; revision=80439
* Attempt to fix and document interactions between suspend/resume and pccardcWarner Losh2001-07-271-0/+28
| | | | | | | | | | | | | | | | | | | | | | | power x 0. pccardc power x 0 used to disable the slot. But a suspend/resume would reactivate the pccard. It no longer does that. Now the disabling of the slot is sticy until it is reset with power x 1 or the card is ejected. This seems closer to correct behavior to me. o Process all card state changes the same using pccard_do_stat_change(). o Cleanup disabling the card so that we can preserve the state after the change. Basically, don't set it to empty as often as we do. o On suspend, the new state is "empty" and the laststate is "suspend" o Document state machine with a diagram of states and edges. The edges are labeld to tell the reader what event causes the external state changes. o "machdep.pccard.pcic_resume_reset" may be obsolete now. We always call the bridge driver's resume method on resume now. Otherwise cards won't automatically show up. If it needs to stay, I'll add it back. Notes: svn path=/head/; revision=80438
* Th -> The in a commentWarner Losh2001-05-121-1/+1
| | | | Notes: svn path=/head/; revision=76500
* First step towards plugging the "pccard is trying to map into a BIOSWarner Losh2001-03-261-0/+1
| | | | | | | | | | | | | | region for CIS reading" problem: Use bus_alloc_resource to get the memory that we'll be using. Also has the benefit of doing usage checking as well. This gets rid of the ugly kludge that we had before for mapping pmem to vmem. Second, move PIOCSRESOURCE to its own routine and make it conform more to style(9) in the process. Notes: svn path=/head/; revision=74807
* Change comment from sprintf to snprintfWarner Losh2000-10-261-1/+1
| | | | Notes: svn path=/head/; revision=67650
* add PIOCSRESOURCE(IOC_GET_RESOURCE_RANGE)MIHIRA Sanpei Yoshiro2000-09-171-0/+13
| | | | | | | | | | Now /usr/sbin/pccardd read free resource(io,irq) range with this ioctl. Original Idea from: PAO3 Notes: svn path=/head/; revision=65991
* Add UNIX domain socket feature to pccardd. This makes pccardHajimu UMEMOTO2000-08-201-1/+1
| | | | | | | | | | related PAO3/ports such as gxcardmon work. Reviewed by: imp Obtained from: PAO3 Notes: svn path=/head/; revision=64878
* This fixes a bug that /etc/pccard_ether did not work without DHCP.Tatsumi Hosokawa2000-01-161-1/+1
| | | | | | | | | | | | | | | | | | | | | For example, when /etc/pccard.conf had ed0 in config line, but kernel refused this name and said devclass_alloc_unit: ed0 already exists, using next availale unit number Kernel used ed1 as device name and it did not match with config and insert/remove lines. Fortunately, dhclient was called without args, and it works, but if we wanted to use static IP address for PC-card, it did not work. This modification makes pccardd to execute insert/remove lines with the true device name that returns from kernel. (Last change to etc/pccard.conf.sample eliminated all hardwired device name from insert/remove lines in /etc/pccard.conf) Notes: svn path=/head/; revision=56095
* Change #ifdef KERNEL to #ifdef _KERNEL in the public headers. "KERNEL"Peter Wemm1999-12-291-1/+1
| | | | | | | | | is an application space macro and the applications are supposed to be free to use it as they please (but cannot). This is consistant with the other BSD's who made this change quite some time ago. More commits to come. Notes: svn path=/head/; revision=55206
* /tmp/msgWarner Losh1999-12-021-0/+3
| | | | Notes: svn path=/head/; revision=54021
* o Add additional printfs for error cases when we can't attach the device.Warner Losh1999-08-011-0/+2
| | | | | | | | | | | o Add field to dev_desc for the size of the io port range. This isn't used yet in the committed sources, but will make the transition easier in the future. If you build this into your kernel, you will need to rebuild pccardd. Notes: svn path=/head/; revision=49352
* Add "beep" ioctl. (#10 is reserved for PIOCSVIR)Jun Kuriyama1999-02-131-0/+1
| | | | | | | | Obtained from: PAO3 Reviewed by: -current list Notes: svn path=/head/; revision=43964
* - Give up trying for a simple solution for correctly recognizing if a cardNate Williams1998-04-201-0/+1
| | | | | | | | | | | | | | was really removed, or simply 'faked' by a suspend/resume. Keep track of both current and previous state, and send that information to the userland programs. [ XXX - This breaks binary compatability with older pccardd programs, but they don't work reliably. :( ] Notes: svn path=/head/; revision=35345
* - Renamed 'card.h' to 'cardinfo.h', to avoid namespace collisions withNate Williams1997-11-181-3/+3
| | | | | | | | | the card.h that config builds. [ Repository renaming done in the background to save the card.h history ] Notes: svn path=/head/; revision=31289
* - Disable cards when doing a suspend by emulating that they have beenNate Williams1997-10-281-1/+1
| | | | | | | | | | | | | | | removed. Add a new state 'suspend' so we 'fake' insertion events at resume time for the cards that have been suspended. [ The code still works if you remove the card during suspend, switch the card during suspend, or combinations of both. ] Reviewed by: frf@xocolatl.com Notes: svn path=/head/; revision=30815
* - 'Beep' support now happens in it's own separate file, so you can messNate Williams1997-10-261-10/+0
| | | | | | | | | | around with different noises for the different events and not have it affect other files. Inspired by: PAO Notes: svn path=/head/; revision=30723
* - Do a bunch of gratuitous changes intended to make the code easier toNate Williams1997-10-261-2/+2
| | | | | | | | | | | | | | | follow. * Rename/reorder all of the pccard structures, change many of the member names to be descriptive, and follow more closely other 'bus' drivers naming schemes. * Rename a bunch of parameter and local variable names to be more consistant in the code. * Renamed the PCCARD 'crd' device to be the 'card' device * KNF and make the code consistant where it was obvious. * ifdef'd out some unused code Notes: svn path=/head/; revision=30720
* Cleaned up all headers that include <sys/ioctl.h> or <sys/ioccom.h>:Bruce Evans1996-09-211-1/+11
| | | | | | | | | | | | | | | | - don't include <sys/ioctl.h> in any header. Include <sys/ioccom.h> instead. This was already done in 4.4Lite for the most important ioctl headers. Header spam currently increases kernel build times by 10-20%. There are more than 30000 #includes (not counting duplicates) for compiling LINT. - include <sys/types.h> if and only it is necessary to make the header almost self-sufficient (some ioctl headers still need structs from elsewhere). - uniformized idempotency ifdefs. Copied the style in the 4.4Lite ioctl headers. Notes: svn path=/head/; revision=18444
* Updated PC-CARD support to contain most of the code from the latestNate Williams1996-02-211-0/+10
| | | | | | | | | | Japanese BSD-Nomad release. Reviewed by: phk Submitted by: hosokawa@mt.cs.keio.ac.jp and the rest of the Nomads Notes: svn path=/head/; revision=14172
* Clean up the ident style.Poul-Henning Kamp1995-11-091-18/+13
| | | | | | | | | | Remove the APM stuff Add support for VA469 Submitted by: Janic.Thaillandier@ratp.fr Notes: svn path=/head/; revision=12173
* Missed these changes to the pccard stuff. Sorry Martin!Poul-Henning Kamp1995-09-201-0/+1
| | | | Notes: svn path=/head/; revision=10914
* Andrew McRae's pcmcia/pccard code, the kernel part.Poul-Henning Kamp1995-08-241-0/+134
This is still very green, but I have managed to get my modem working. Lots of work still to do, but now at least we can commit it. /phk Reviewed by: phk Submitted by: Andrew McRae <andrew@mega.com.au> Notes: svn path=/head/; revision=10216