aboutsummaryrefslogtreecommitdiff
path: root/sys/dev/cardbus/cardbusvar.h
Commit message (Collapse)AuthorAgeFilesLines
* Retire unused non-PCI_RES_BUS codeJessica Clarke2024-07-181-2/+0
| | | | | | | | All architectures define PCI_RES_BUS unconditionally now that only NEW_PCIB is supported, so we no longer need the legacy code. Reviewed by: jhb, andrew Differential Revision: https://reviews.freebsd.org/D32955
* sys: Remove $FreeBSD$: two-line .h patternWarner Losh2023-08-161-2/+0
| | | | Remove /^\s*\*\n \*\s+\$FreeBSD\$$\n/
* spdx: The BSD-2-Clause-FreeBSD identifier is obsolete, drop -FreeBSDWarner Losh2023-05-121-1/+1
| | | | | | | | | The SPDX folks have obsoleted the BSD-2-Clause-FreeBSD identifier. Catch up to that fact and revert to their recommended match of BSD-2-Clause. Discussed with: pfg MFC After: 3 days Sponsored by: Netflix
* Regularize my copyright noticeWarner Losh2019-12-041-3/+2
| | | | | | | | | | | | o Remove All Rights Reserved from my notices o imp@FreeBSD.org everywhere o regularize punctiation, eliminate date ranges o Make sure that it's clear that I don't claim All Rights reserved by listing All Rights Reserved on same line as other copyright holders (but not me). Other such holders are also listed last where it's clear. Notes: svn path=/head/; revision=355394
* sys/dev: further adoption of SPDX licensing ID tags.Pedro F. Giffuni2017-11-271-0/+2
| | | | | | | | | | | | | | | Mainly focus on files that use BSD 2-Clause license, however the tool I was using misidentified many licenses so this was mostly a manual - error prone - task. The Software Package Data Exchange (SPDX) group provides a specification to make it easier for automated tools to detect and summarize well known opensource licenses. We are gradually adopting the specification, noting that the tags are considered only advisory and do not, in any way, superceed or replace the license texts. Notes: svn path=/head/; revision=326255
* Add support for managing PCI bus numbers. As with BARs and PCI-PCI bridgeJohn Baldwin2014-02-121-0/+3
| | | | | | | | | | | | | | | | | | | | | | | | | I/O windows, the default is to preserve the firmware-assigned resources. PCI bus numbers are only managed if NEW_PCIB is enabled and the architecture defines a PCI_RES_BUS resource type. - Add a helper API to create top-level PCI bus resource managers for each PCI domain/segment. Host-PCI bridge drivers use this API to allocate bus numbers from their associated domain. - Change the PCI bus and CardBus drivers to allocate a bus resource for their bus number from the parent PCI bridge device. - Change the PCI-PCI and PCI-CardBus bridge drivers to allocate the full range of bus numbers from secbus to subbus from their parent bridge. The drivers also always program their primary bus register. The bridge drivers also support growing their bus range by extending the bus resource and updating subbus to match the larger range. - Add support for managing PCI bus resources to the Host-PCI bridge drivers used for amd64 and i386 (acpi_pcib, mptable_pcib, legacy_pcib, and qpi_pcib). - Define a PCI_RES_BUS resource type for amd64 and i386. Reviewed by: imp MFC after: 1 month Notes: svn path=/head/; revision=261790
* Don't call destroy_dev on the alias. This fixes half a dozen PRs I think.Warner Losh2008-12-021-1/+0
| | | | Notes: svn path=/head/; revision=185545
* Create a /dev/cardbus%d.cis, to be compatible with older versions ofWarner Losh2008-11-211-0/+1
| | | | | | | | the software. This is a trivial amount of code to keep wireless monitoring software working... I plan on removing it in 9.0. Notes: svn path=/head/; revision=185140
* Overhaul of CIS parsing, next step: keep a cached copy of the CIS,Warner Losh2008-11-171-14/+27
| | | | | | | | | | | | read before we configure the card, so we can implement /dev/cardbus*.cis. Also, do this on a per-child basis, so we now have a different name than before. I think i'll have to fix that for some legacy tools to keep working. I can now do a dumpcis on my running atheros card and have it still work! Notes: svn path=/head/; revision=185015
* First step in cleaning up CIS parsing and /dev/cardbus*.cis: removeWarner Losh2008-11-151-3/+2
| | | | | | | | | redundant malloc/free. Add comments about how this should really be done. Fix an overly verbose comment about under 1MB mapping: go ahead and set the bits, but we ignore them. Notes: svn path=/head/; revision=184981
* Retire BARBIT in favor of new PCI_RID2BAR.Warner Losh2005-12-291-1/+0
| | | | Notes: svn path=/head/; revision=153862
* Implement /dev/cardbus%d.cis, same thing as /dev/pccard%d.cis. ThereWarner Losh2005-12-291-0/+32
| | | | | | | | are some rough edges with this still, but it seems to work well enough to commit. Notes: svn path=/head/; revision=153811
* Use PCIR_BARS rather than CARDBUS_BASE0_REGWarner Losh2005-10-281-2/+3
| | | | | | | Style nit. Notes: svn path=/head/; revision=151782
* Move resource allocation routines from cardbus_cis.c to cardbus.c.Warner Losh2005-02-061-7/+0
| | | | | | | | | | | | | | They have nothing at all to do with CIS parsing. Remove some unused funce parsing: nothing used the results. Use more of pccard_cis.h's deifnitions for the cardbus specific cis parsing we do. More work is needed in this area. This reduces the size of the cardbus module by 380 bytes or so... Notes: svn path=/head/; revision=141412
* Use the standard FreeBSD licenseWarner Losh2005-01-131-7/+5
| | | | | | | Approved by: imp, jon Notes: svn path=/head/; revision=140198
* Start each of the license/copyright comments with /*-, minor shuffle of linesWarner Losh2005-01-061-1/+1
| | | | Notes: svn path=/head/; revision=139749
* MFp4:Warner Losh2003-01-271-11/+11
| | | | | | | u_int*_t -> uint*_t to conform more closely with C99. Notes: svn path=/head/; revision=109925
* Implement PCI_IVAR_ETHADDR. Cardbus has the MAC addr in the CIS,Warner Losh2002-11-271-0/+16
| | | | | | | | | | | sometimes, so return it when requested and it does. Also a little more infrastructure for a few other things. Submitted by: sam Approved by: re (blanket for NEWCARD) Notes: svn path=/head/; revision=107301
* Add extra set of parens around the barbit macro to make it clear whatWarner Losh2002-10-071-1/+1
| | | | | | | | | we're intending to shift. Spotted by: flexlint by way of phk (should fix about 40 messages) Notes: svn path=/head/; revision=104637
* Use the pci.c code wherever possible, rather than copying all the pciWarner Losh2002-02-271-16/+5
| | | | | | | | | | | | | | | | | code into cardbus and s/pci/cardbus. This exposes a few pci_* functions that are now static. This work is similar to work Justin posted to the mobile list about a year or two ago, which I have neglected since then. This is a subset of his current work with the multiple inheritance newbus architecutre. When completed, that will eliminate the need for pci/pci_private.h. Similar work is needed for the cardbus_cis and pccard_cis code as well. Notes: svn path=/head/; revision=91355
* Part two of this NEWCARD update:Jonathan Chen2001-08-271-0/+12
| | | | | | | | | | | | | | | | | | | Briefly, the significant changes include: * Way better resource management in pccbb, pccard and cardbus. * pccard hot-removal now appears to work. * support pre-fetchable memory in cardbus. * update cardbus to support new pci bus interface functions. * Fix CIS reading to no longer use rman_get_virtual(). What's not there, but in the works: * pccard needs to do interrupt properly and not read the ISR on single function cards. * real resource management for pccard * a complete implementation of CIS parsing * need to look into how to correctly use mutex in pccbb Notes: svn path=/head/; revision=82378
* Non-functional changes to NEWCARD stuff.Jonathan Chen2001-08-261-3/+3
| | | | | | | | | | | | | | | This is the first part of a two-part update to NEWCARD. Changes in this commit are non-functional, and includes the following: * indentation and other changes to meet style(9). * other minor style consistancy changes * addition of comments * renaming of device_t variables to be consistant across all of NEWCARD. (note that not all style violations are fixed in this commit -- those that aren't will be clobbered by the next commit.) Notes: svn path=/head/; revision=82375
* Initial commit of NEWCARD cardbus side (that actually compiles and works)Jonathan Chen2000-10-181-167/+26
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Files: dev/cardbus/cardbus.c dev/cardbus/cardbusreg.h dev/cardbus/cardbusvar.h dev/cardbus/cardbus_cis.c dev/cardbus/cardbus_cis.h dev/pccbb/pccbb.c dev/pccbb/pccbbreg.h dev/pccbb/pccbbvar.h dev/pccbb/pccbb_if.m This should support: - cardbus controllers: * TI 113X * TI 12XX * TI 14XX * Ricoh 47X * Ricoh 46X * ToPIC 95 * ToPIC 97 * ToPIC 100 * Cirrus Logic CLPD683x - cardbus cards * 3c575BT * 3c575CT * Xircom X3201 (includes IBM, Xircom and, Intel cards) [ 3com support already in kernel, Xircom will be committed real soon now] This doesn't work with 16bit pccards under NEWCARD. Enable in your config by having "device pccbb" and "device cardbus". (A "device pccard" will attach a pccard bus, but it means you system have a high chance of panicing when a 16bit card is inserted) It should be fairly simple to make a driver attach to cardbus under NEWCARD -- simply add an entry for attaching to cardbus on a new DRIVER_MODULE and add new device IDs as necessary. You should also make sure the card can be detached nicely without the interrupt routine doing something weird, like going into an infinite loop. Usually that should entail adding an additional check when a pci register or the bus space is read to check if it equals 0xffffffff. Any problems, please let me know. Reviewed by: imp Notes: svn path=/head/; revision=67276
* Raw import of newconfig cardbus code. This is effectively an import,Warner Losh1999-11-181-0/+180
so the code doesn't compile. I added $FreeBSD$ headers. Notes: svn path=/head/; revision=53343