#
4367f2b4 |
| 25-Sep-2022 |
thorpej <thorpej@NetBSD.org> |
Remove unnecessary include of <sys/malloc.h>.
|
#
d619634b |
| 14-Jul-2016 |
msaitoh <msaitoh@NetBSD.org> |
- Use aprint*() more in xxx_attach(). - Add missing aprint_naive("\n"). - Remove extra spaces and tabs. - KNF.
|
#
7759d443 |
| 01-Aug-2011 |
drochner <drochner@NetBSD.org> |
remove some bloat: -cardbus doesn't use multiple interrupt lines like PCI, and it doesn't use machanisms like interrupt line register and swizzling -- no need to carry around dummy information, thi
remove some bloat: -cardbus doesn't use multiple interrupt lines like PCI, and it doesn't use machanisms like interrupt line register and swizzling -- no need to carry around dummy information, this is all dealt with by the bridge (I'm asking myself how "rbus_ppb" can work -- a bridge attached to cardbus just can't work like a normal PCI bridge as far as interrupts are concerned. I thing that should be a hardware specific driver because behavior is not covered by a standard.) -cardbus always uses 3.3V -- no need for a variable to keep track of the voltage
show more ...
|
#
9d3c07c5 |
| 26-Jul-2011 |
dyoung <dyoung@NetBSD.org> |
Replace anonymous constants, 0x10, 0x14, ..., with PCI_BAR(0), PCI_BAR(1), .... There was no change in the generated assembly. I used this semantic patch:
@ mapsit @ identifier bar; expression pact
Replace anonymous constants, 0x10, 0x14, ..., with PCI_BAR(0), PCI_BAR(1), .... There was no change in the generated assembly. I used this semantic patch:
@ mapsit @ identifier bar; expression pact; @@
( pci_mapreg_map | Cardbus_mapreg_map )(pact, bar, ...)
@ depends on mapsit @ identifier mapsit.bar; @@ ( - #define bar 0x10 + #define bar PCI_BAR(0) | - #define bar 0x14 + #define bar PCI_BAR(1) | - #define bar 0x18 + #define bar PCI_BAR(2) | - #define bar 0x1C + #define bar PCI_BAR(3) | - #define bar 0x20 + #define bar PCI_BAR(4) )
show more ...
|
#
f2e05b3a |
| 09-Jul-2011 |
christos <christos@NetBSD.org> |
- add a routine to get the name of the card.
|
#
dc1ff0bc |
| 10-Mar-2010 |
dyoung <dyoung@NetBSD.org> |
This is *always* compiled with #define rbus 1, so get rid of the conditional compilation.
Simplify interrupt (dis)establishment by two source transformations:
- cardbus_intr_disestablish(cc,
This is *always* compiled with #define rbus 1, so get rid of the conditional compilation.
Simplify interrupt (dis)establishment by two source transformations:
- cardbus_intr_disestablish(cc, cf, ih); + Cardbus_intr_disestablish(ct, ih);
- ih = cardbus_intr_establish(cc, cf, ...); + ih = Cardbus_intr_establish(ct, ...);
Tested by Klaus Heinz.
show more ...
|
#
508883c1 |
| 26-Feb-2010 |
dyoung <dyoung@NetBSD.org> |
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_.
Compi
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.
show more ...
|
#
51d6f75d |
| 26-Feb-2010 |
dyoung <dyoung@NetBSD.org> |
sc_csr is read & written from the PCI Command & Status Register, so make its type pcireg_t.
|
#
fde907f4 |
| 25-Feb-2010 |
dyoung <dyoung@NetBSD.org> |
Make fxp at cardbus detach during shutdown.
Stop calling (*cardbus_ctrl) to enable bus mastering, I/O and memory spaces on the CardBus bridge. cbb(4) always enables that stuff, anyway. In the proc
Make fxp at cardbus detach during shutdown.
Stop calling (*cardbus_ctrl) to enable bus mastering, I/O and memory spaces on the CardBus bridge. cbb(4) always enables that stuff, anyway. In the process, avoid remembering what BAR we mapped by writing CARDBUS_{IO,MEM}_ENABLE to sc_cben or sc_cbenable, and record the BAR in use sc_bar, instead.
Replace more CARDBUS_ constants with PCI_ constants.
Compile-tested, only.
show more ...
|
#
8089c2dc |
| 24-Feb-2010 |
dyoung <dyoung@NetBSD.org> |
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 c
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.
show more ...
|
#
8052f8db |
| 18-Jan-2010 |
pooka <pooka@NetBSD.org> |
Remove conditional inclusion of unused bpf.h
|
#
c4550425 |
| 17-Apr-2009 |
cegger <cegger@NetBSD.org> |
device_t/softc split. Tested with tlp at pci
|
#
454af1c0 |
| 14-Mar-2009 |
dsl <dsl@NetBSD.org> |
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
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.)
show more ...
|
#
36b6bc74 |
| 24-Jun-2008 |
drochner <drochner@NetBSD.org> |
clean up the cardbus interrupt stuff: There were cardbus_intr_line_t and cardbus_intr_handle_t used intermixed for the same variable, and that variable is pretty much useless because cardbus doesn't
clean up the cardbus interrupt stuff: There were cardbus_intr_line_t and cardbus_intr_handle_t used intermixed for the same variable, and that variable is pretty much useless because cardbus doesn't follow the PCI interrupt swizzling etc scheme. Useless interrupt numbers were printed on cardbus device attach. So as a first step to sanity, kill cardbus_intr_handle_t and poison cardbus_intr_line_t to discourage printing it as a %d. Use cardbus_intr_line_t consistently throughout the code. Remove the "interrupting at foo" messages because the information is misleading. We could come up with a better interrupt vector information, but because cardbus interrupts are mediated by pccbb it would still be misleading.
show more ...
|
#
ce099b40 |
| 28-Apr-2008 |
martin <martin@NetBSD.org> |
Remove clause 3 and 4 from TNF licenses
|
#
c0d1e7cb |
| 06-Apr-2008 |
cegger <cegger@NetBSD.org> |
use aprint_*_dev and device_xname
|
#
efad92c9 |
| 06-Feb-2008 |
dyoung <dyoung@NetBSD.org> |
On a tlp@cardbus, don't set the Tx FIFO threshold to "store & forward" mode, but let the driver automatically adjust.
Cardbus is not actually so slow that it cannot keep up with the NIC. It may som
On a tlp@cardbus, don't set the Tx FIFO threshold to "store & forward" mode, but let the driver automatically adjust.
Cardbus is not actually so slow that it cannot keep up with the NIC. It may sometimes have appeared so because we had not enabled PCI read bursts. These days, though, we enable read bursts on at least one TI PCI-Cardbus bridge.
show more ...
|
#
4c1d81b2 |
| 09-Dec-2007 |
jmcneill <jmcneill@NetBSD.org> |
Merge jmcneill-pm branch.
|
#
a2a38285 |
| 19-Oct-2007 |
ad <ad@NetBSD.org> |
machine/{bus,cpu,intr}.h -> sys/{bus,cpu,intr}.h
|
#
168cd830 |
| 16-Nov-2006 |
christos <christos@NetBSD.org> |
__unused removal on arguments; approved by core.
|
#
4d595fd7 |
| 12-Oct-2006 |
christos <christos@NetBSD.org> |
- sprinkle __unused on function decls. - fix a couple of unused bugs - no more -Wno-unused for i386
|
#
f2d329dc |
| 07-Sep-2006 |
dogcow <dogcow@NetBSD.org> |
remove more vestiges of CCITT, LLC, HDLC, NS, and NSIP.
|
#
e3a079b5 |
| 21-Jul-2006 |
gdamore <gdamore@NetBSD.org> |
Update ADMtek pci device ids to match data sheets. While here, add the 9513 device (although I've never seen one, I have a datasheet for it. :-)
|
#
0bb04182 |
| 29-Mar-2006 |
thorpej <thorpej@NetBSD.org> |
Use device_private().
|
#
95e1ffb1 |
| 11-Dec-2005 |
christos <christos@NetBSD.org> |
merge ktrace-lwp.
|