summaryrefslogtreecommitdiffstats
path: root/sys/pccard/cardinfo.h
Commit message (Collapse)AuthorAgeFilesLines
* Add some code which is compatible for NEWCARD. It makes manufacturershiba2002-02-201-0/+3
| | | | | | id transfer from pccardd. Reviewed by: imp
* Use spaces instead of hard tabs in the diagram.imp2001-07-281-14/+14
|
* Minor nits merged from my stable tree:imp2001-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).
* Additional clarification.imp2001-07-271-1/+8
|
* Attempt to fix and document interactions between suspend/resume and pccardcimp2001-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.
* Th -> The in a commentimp2001-05-121-1/+1
|
* First step towards plugging the "pccard is trying to map into a BIOSimp2001-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.
* Change comment from sprintf to snprintfimp2000-10-261-1/+1
|
* add PIOCSRESOURCE(IOC_GET_RESOURCE_RANGE)sanpei2000-09-171-0/+13
| | | | | | | Now /usr/sbin/pccardd read free resource(io,irq) range with this ioctl. Original Idea from: PAO3
* Add UNIX domain socket feature to pccardd. This makes pccardume2000-08-201-1/+1
| | | | | | | related PAO3/ports such as gxcardmon work. Reviewed by: imp Obtained from: PAO3
* This fixes a bug that /etc/pccard_ether did not work without DHCP.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)
* Change #ifdef KERNEL to #ifdef _KERNEL in the public headers. "KERNEL"peter1999-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.
* /tmp/msgimp1999-12-021-0/+3
|
* o Add additional printfs for error cases when we can't attach the device.imp1999-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.
* Add "beep" ioctl. (#10 is reserved for PIOCSVIR)kuriyama1999-02-131-0/+1
| | | | | Obtained from: PAO3 Reviewed by: -current list
* - Give up trying for a simple solution for correctly recognizing if a cardnate1998-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. :( ]
* - Renamed 'card.h' to 'cardinfo.h', to avoid namespace collisions withnate1997-11-181-3/+3
| | | | | | the card.h that config builds. [ Repository renaming done in the background to save the card.h history ]
* - Disable cards when doing a suspend by emulating that they have beennate1997-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
* - 'Beep' support now happens in it's own separate file, so you can messnate1997-10-261-10/+0
| | | | | | | around with different noises for the different events and not have it affect other files. Inspired by: PAO
* - Do a bunch of gratuitous changes intended to make the code easier tonate1997-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
* Cleaned up all headers that include <sys/ioctl.h> or <sys/ioccom.h>:bde1996-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.
* Updated PC-CARD support to contain most of the code from the latestnate1996-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
* Clean up the ident style.phk1995-11-091-18/+13
| | | | | | | Remove the APM stuff Add support for VA469 Submitted by: Janic.Thaillandier@ratp.fr
* Missed these changes to the pccard stuff. Sorry Martin!phk1995-09-201-0/+1
|
* Andrew McRae's pcmcia/pccard code, the kernel part.phk1995-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>
OpenPOWER on IntegriCloud