Home | History | Annotate | Download | only in cardbus
History log of /src/sys/dev/cardbus/cardbus_map.c
RevisionDateAuthorComments
 1.36  15-Mar-2010  dyoung Delete unused functions cardbus_save_bar() and cardbus_restore_bar().
 1.35  04-Mar-2010  dyoung branches: 1.35.2;
This is *always* compiled with #define rbus 1, so get rid of the
conditional compilation.
 1.34  26-Feb-2010  dyoung Use PCI_ constants and macros instead of CARDBUS_. Use
Cardbus_conf_{read,write}() instead of cardbus_conf_{read,write}().
Delete all of the CARDBUS_ constants and macros that replicate PCI_.

Compile-tested, only.
 1.33  25-Feb-2010  dyoung Cardbus_free_tag() and cardbus_free_tag() are no-ops, so get rid of them
to simplify the code a bit.
 1.32  24-Feb-2010  dyoung Start to tuck Cardbus under the PCI abstraction. Step #1, textual
substitution: for all practical purposes, pcitag_t and cardbustag_t
are interchangeable, so just use pcitag_t. Ditto pcireg_t and
cardbusreg_t.

While I'm here, don't make a copy (sc_intrline) of
cardbus_attach_args.ca_intrline unless we use it, later.
 1.31  15-Dec-2009  snj branches: 1.31.2;
Move to 2-clause license. Approved by HAYAKAWA Koichi (copyright holder).
 1.30  15-Mar-2009  cegger ansify function definitions
 1.29  14-Mar-2009  dsl ANSIfy another 1261 function definitions.
The only ones left in sys are beyond by sed script!
(or in sys/dist or sys/external)
Mostly they have function pointer parameters.
 1.28  14-Mar-2009  dsl Change about 4500 of the K&R function definitions to ANSI ones.
There are still about 1600 left, but they have ',' or /* ... */
in the actual variable definitions - which my awk script doesn't handle.
There are also many that need () -> (void).
(The script does handle misordered arguments.)
 1.27  25-Jun-2008  drochner branches: 1.27.4; 1.27.10;
split device/softc for pccbb, the cardbus half of cardslot and cardbus
(not yet pcmcia, there is a lot of md code involved)
 1.26  06-Apr-2008  cegger branches: 1.26.4; 1.26.6; 1.26.8;
use aprint_*_dev and device_xname
 1.25  19-Oct-2007  ad branches: 1.25.16;
machine/{bus,cpu,intr}.h -> sys/{bus,cpu,intr}.h
 1.24  16-Nov-2006  christos branches: 1.24.8; 1.24.22; 1.24.24; 1.24.28;
__unused removal on arguments; approved by core.
 1.23  12-Oct-2006  christos - sprinkle __unused on function decls.
- fix a couple of unused bugs
- no more -Wno-unused for i386
 1.22  04-Jun-2006  itohy branches: 1.22.6; 1.22.8;
Make compile by gcc 2.
 1.21  11-May-2006  mrg branches: 1.21.2;
quell GCC 4.1 uninitialised variable warnings.
 1.20  21-Apr-2006  martin Backout previous: bus_space_handle_t is an opaque type and can not be
initialized savely.
 1.19  14-Apr-2006  christos Coverity CID 2465: Fix uninitialized variable. XXX: cardbus_mapreg_map()
never fails (even when it does not find memory). Perhaps it should?
 1.18  11-Dec-2005  christos branches: 1.18.4; 1.18.6; 1.18.8; 1.18.10; 1.18.12;
merge ktrace-lwp.
 1.17  09-Sep-2005  drochner remove the useless (always 0) device number from cardbus driver state,
autoconf attach structures and configuration cycle functions
(just leave the kernel configuration attribute for now to avoid breaking
config(1) files)
 1.16  27-Feb-2005  perry branches: 1.16.4;
nuke trailing whitespace
 1.15  04-Feb-2005  perry de-__P
 1.14  15-Nov-2001  lukem branches: 1.14.16; 1.14.24; 1.14.26;
don't need <sys/types.h> when including <sys/param.h>
 1.13  13-Nov-2001  lukem add RCSID
 1.12  30-Apr-2001  jmc branches: 1.12.2;
Cast base correctly for format string.
 1.11  12-Oct-2000  wiz branches: 1.11.2;
typo fix in comment (stallen -> stolen)
 1.10  07-Mar-2000  mycroft Fix an obvious bug that caused I/O space to never be freed.
Also, don't use rbus_space_free() directly.
 1.9  09-Feb-2000  itohy Make it compile with options DEBUG.
Reported by Kawamoto Yosihisa (PR #9379).
 1.8  04-Feb-2000  haya Now cardbus_mapreg_unmap() has been implemented in
sys/dev/cardbus/cardbus_map.c. The detech function in
sys/dev/cardbus/if_tlp_cardbus.c uses cardbus_mapreg_unmap().
 1.7  25-Jan-2000  drochner use BUS_SPACE_MAP_PREFETCHABLE instead BUS_SPACE_MAP_CACHEABLE where the
PCI BAR bit is referred to
 1.6  09-Nov-1999  haya branches: 1.6.2;
Maintenance CardBus/PCI extension ROM mapping routine.
1. Make Extension ROM not to be mapped on I/O space.
2. Do not check the bus-space indicator in ROM register.
 1.5  27-Oct-1999  joda allow mapping of the expansion rom
 1.4  27-Oct-1999  haya Change cardbus API. The first argument of cardbus_mapreg_map() is
changed to struct cardbus_softc * from cardbus_devfunc_t. The old
function is renamed to Cardbus_mapreg_map().
 1.3  15-Oct-1999  augustss branches: 1.3.2; 1.3.4;
Comment out some debug settings.
Change attach printing so it looks more standard.
 1.2  15-Oct-1999  haya add NetBSD ID tag.
 1.1  15-Oct-1999  haya This is the first check-in of CardBus driver. CardBus driver contains
CardBus bus stub, YENTA PCI-CardBus bridge (cbb), 3Com 3C575TX driver
(ex) and Intel fxp driver.

TODO:
o Conform to the KNF more strictly.
o Be unified with pcmcia code as much as possible.
o Add more drivers for CardBus card, such as APA-1480 or USB card.

The affected files are listed below.

sys/arch/i386/conf/files.i386
sys/arch/macppc/conf/files.macppc
sys/conf/files
sys/dev/ic/elinkxl.c
sys/dev/ic/elinkxlvar.h
sys/dev/ic/i82365.c
sys/dev/ic/i82365var.h
sys/dev/isa/i82365_isasubr.c
sys/dev/pci/files.pci
sys/dev/pcmcia/pcmcia.c
sys/dev/pcmcia/pcmciachip.h

The added files are listed below.

sys/arch/i386/conf/CARDBUS
sys/arch/i386/include/rbus_machdep.h
sys/arch/i386/i386/rbus_machdep.c
sys/arch/macppc/include/rbus_machdep.h
sys/arch/macppc/macppc/rbus_machdep.c
sys/dev/cardbus/if_ex_cardbus.c
sys/dev/cardbus/Makefile.cardbusdevs
sys/dev/cardbus/cardbus.c
sys/dev/cardbus/cardbus_map.c
sys/dev/cardbus/cardbusdevs
sys/dev/cardbus/cardbusdevs.h
sys/dev/cardbus/cardbusdevs_data.h
sys/dev/cardbus/cardbusvar.h
sys/dev/cardbus/cardslot.c
sys/dev/cardbus/cardslotvar.h
sys/dev/cardbus/devlist2h.awk
sys/dev/cardbus/files.cardbus
sys/dev/cardbus/if_fxp_cardbus.c
sys/dev/cardbus/pccardcis.h
sys/dev/cardbus/rbus.c
sys/dev/cardbus/rbus.h
sys/dev/pci/pccbb.c
sys/dev/pci/pccbbreg.h
sys/dev/pci/pccbbvar.h
 1.3.4.1  15-Nov-1999  fvdl Sync with -current
 1.3.2.1  20-Nov-2000  bouyer Update thorpej_scsipi to -current as of a month ago
A i386 GENERIC kernel compiles without the siop, ahc and bha drivers
(will be updated later). i386 IDE/ATAPI and ncr work, as well as
sparc/esp_sbus. alpha should work as well (untested yet).
siop, ahc and bha will be updated once I've updated the branch to current
-current, as well as machine-dependant code.
 1.6.2.1  27-Dec-1999  wrstuden Pull up to last week's -current.
 1.11.2.3  08-Jan-2002  nathanw Catch up to -current.
 1.11.2.2  14-Nov-2001  nathanw Catch up to -current.
 1.11.2.1  21-Jun-2001  nathanw Catch up to -current.
 1.12.2.1  10-Jan-2002  thorpej Sync kqueue branch with -current.
 1.14.26.2  19-Mar-2005  yamt sync with head. xen and whitespace. xen part is not finished.
 1.14.26.1  12-Feb-2005  yamt sync with head.
 1.14.24.1  29-Apr-2005  kent sync with -current
 1.14.16.3  10-Nov-2005  skrll Sync with HEAD. Here we go again...
 1.14.16.2  04-Mar-2005  skrll Sync with HEAD.

Hi Perry!
 1.14.16.1  04-Feb-2005  skrll Sync with HEAD.
 1.16.4.3  27-Oct-2007  yamt sync with head.
 1.16.4.2  30-Dec-2006  yamt sync with head.
 1.16.4.1  21-Jun-2006  yamt sync with head.
 1.18.12.1  24-May-2006  tron Merge 2006-05-24 NetBSD-current into the "peter-altq" branch.
 1.18.10.2  11-May-2006  elad sync with head
 1.18.10.1  19-Apr-2006  elad sync with head.
 1.18.8.2  26-Jun-2006  yamt sync with head.
 1.18.8.1  24-May-2006  yamt sync with head.
 1.18.6.3  07-Jun-2006  kardel Sync with head.
 1.18.6.2  01-Jun-2006  kardel Sync with head.
 1.18.6.1  22-Apr-2006  simonb Sync with head.
 1.18.4.1  09-Sep-2006  rpaulo sync with head
 1.21.2.1  19-Jun-2006  chap Sync with head.
 1.22.8.2  10-Dec-2006  yamt sync with head.
 1.22.8.1  22-Oct-2006  yamt sync with head
 1.22.6.1  18-Nov-2006  ad Sync with head.
 1.24.28.1  25-Oct-2007  bouyer Sync with HEAD.
 1.24.24.1  06-Nov-2007  matt sync with HEAD
 1.24.22.1  26-Oct-2007  joerg Sync with HEAD.

Follow the merge of pmap.c on i386 and amd64 and move
pmap_init_tmp_pgtbl into arch/x86/x86/pmap.c. Modify the ACPI wakeup
code to restore CR4 before jumping back into kernel space as the large
page option might cover that.
 1.24.8.1  23-Oct-2007  ad Sync with head.
 1.25.16.2  29-Jun-2008  mjf Sync with HEAD.
 1.25.16.1  02-Jun-2008  mjf Sync with HEAD.
 1.26.8.1  27-Jun-2008  simonb Sync with head.
 1.26.6.1  18-Sep-2008  wrstuden Sync with wrstuden-revivesa-base-2.
 1.26.4.3  11-Aug-2010  yamt sync with head.
 1.26.4.2  11-Mar-2010  yamt sync with head
 1.26.4.1  04-May-2009  yamt sync with head.
 1.27.10.1  13-May-2009  jym Sync with HEAD.

Commit is split, to avoid a "too many arguments" protocol error.
 1.27.4.1  28-Apr-2009  skrll Sync with HEAD.
 1.31.2.1  30-Apr-2010  uebayasi Sync with HEAD.
 1.35.2.1  30-May-2010  rmind sync with head

RSS XML Feed