History log of /freebsd-10.0-release/usr.sbin/dumpcis/cardinfo.h
Revision Date Author Comments
(<<< Hide modified files)
(Show modified files >>>)
# 259065 07-Dec-2013 gjb

- Copy stable/10 (r259064) to releng/10.0 as part of the
10.0-RELEASE cycle.
- Update __FreeBSD_version [1]
- Set branch name to -RC1

[1] 10.0-CURRENT __FreeBSD_version value ended at '55', so
start releng/10.0 at '100' so the branch is started with
a value ending in zero.

Approved by: re (implicit)
Sponsored by: The FreeBSD Foundation

# 256281 10-Oct-2013 gjb

Copy head (r256279) to stable/10 as part of the 10.0-RELEASE cycle.

Approved by: re (implicit)
Sponsored by: The FreeBSD Foundation


# 199141 10-Nov-2009 jhb

Purge some useless mergeinfo.


# 188633 15-Feb-2009 imp

Move sys/pccard/*.h here.


# 154163 10-Jan-2006 imp

Remove code describing pre 5.x system


# 139825 07-Jan-2005 imp

/* -> /*- for license, minor formatting changes


# 113946 23-Apr-2003 imp

1. Allow drivers to query CIS strings from OLDCARD.
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


# 100484 22-Jul-2002 imp

Copy manufacturer and version string into the kernel, and copy it to
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).


# 99943 14-Jul-2002 imp

Rearrange previous commit that passed the vendor id to the kernel in a way
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.


# 90967 20-Feb-2002 shiba

Add some code which is compatible for NEWCARD. It makes manufacturer
id transfer from pccardd.

Reviewed by: imp


# 80464 28-Jul-2001 imp

Use spaces instead of hard tabs in the diagram.


# 80440 27-Jul-2001 imp

Minor nits merged from my stable tree:
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).


# 80439 27-Jul-2001 imp

Additional clarification.


# 80438 27-Jul-2001 imp

Attempt to fix and document interactions between suspend/resume and pccardc
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.


# 76500 12-May-2001 imp

Th -> The in a comment


# 74807 26-Mar-2001 imp

First step towards plugging the "pccard is trying to map into a BIOS
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.


# 67650 26-Oct-2000 imp

Change comment from sprintf to snprintf


# 65991 17-Sep-2000 sanpei

add PIOCSRESOURCE(IOC_GET_RESOURCE_RANGE)
Now /usr/sbin/pccardd read free resource(io,irq) range with
this ioctl.

Original Idea from: PAO3


# 64878 20-Aug-2000 ume

Add UNIX domain socket feature to pccardd. This makes pccard
related PAO3/ports such as gxcardmon work.

Reviewed by: imp
Obtained from: PAO3


# 56095 16-Jan-2000 hosokawa

This fixes a bug that /etc/pccard_ether did not work without DHCP.
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)


# 55206 29-Dec-1999 peter

Change #ifdef KERNEL to #ifdef _KERNEL in the public headers. "KERNEL"
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.


# 54024 02-Dec-1999 imp

[[ First attempt used -m /tmp/msg rather than -F /tmp/msg ]]

Kernel portion of pccardc power virtual power interface (it helps me
test). Patch was originally from mihira-san in message to
freebsd-mobile. I reworked it a little and tested it here. He ported
the code originally from PAO.

Submitted by: MIHIRA Sanpei Yoshiro <sanpei@sanpei.org>


# 54021 02-Dec-1999 imp

/tmp/msg


# 49352 01-Aug-1999 imp

o Add additional printfs for error cases when we can't attach the device.
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.


# 43964 13-Feb-1999 kuriyama

Add "beep" ioctl. (#10 is reserved for PIOCSVIR)

Obtained from: PAO3
Reviewed by: -current list


# 35345 20-Apr-1998 nate

- Give up trying for a simple solution for correctly recognizing if a card
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. :(
]


# 31289 18-Nov-1997 nate

- Renamed 'card.h' to 'cardinfo.h', to avoid namespace collisions with
the card.h that config builds.

[ Repository renaming done in the background to save the card.h history ]


# 30815 28-Oct-1997 nate

- Disable cards when doing a suspend by emulating that they have been
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


# 30723 26-Oct-1997 nate

- 'Beep' support now happens in it's own separate file, so you can mess
around with different noises for the different events and not have it
affect other files.

Inspired by: PAO


# 30720 26-Oct-1997 nate

- Do a bunch of gratuitous changes intended to make the code easier to
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


# 18444 21-Sep-1996 bde

Cleaned up all headers that include <sys/ioctl.h> or <sys/ioccom.h>:
- 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.


# 14172 21-Feb-1996 nate

Updated PC-CARD support to contain most of the code from the latest
Japanese BSD-Nomad release.

Reviewed by: phk
Submitted by: hosokawa@mt.cs.keio.ac.jp and the rest of the Nomads


# 12173 09-Nov-1995 phk

Clean up the ident style.
Remove the APM stuff
Add support for VA469

Submitted by: Janic.Thaillandier@ratp.fr


# 10914 20-Sep-1995 phk

Missed these changes to the pccard stuff. Sorry Martin!


# 10216 24-Aug-1995 phk

Andrew McRae's pcmcia/pccard code, the kernel part.

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>