Commit Graph

1266 Commits

Author SHA1 Message Date
dyoung cf784f4497 Improve pci, cbb, cardslot, cardbus, and pcmcia to support detachment
of this entire device tree:

pci0 at mainbus0
        elansc0 at pci0
                gpio0 at elansc0
        cbb0 at pci0
                cardslot0 at cbb0
                        cardbus0 at cardslot0
                        pcmcia0 at cardslot0
        cbb1 at pci0
                cardslot1 at cbb1
                        cardbus1 at cardslot1
                                rtw0 at cardbus1
                        pcmcia1 at cardslot1
        sip0 at pci0
                nsphyter0 at sip0
        sip1 at pci0
                nsphyter1 at sip1

Whew!
2007-12-16 21:28:30 +00:00
jmcneill 4c1d81b2b5 Merge jmcneill-pm branch. 2007-12-09 20:27:42 +00:00
jmcneill a0d3b0d7a8 aprintify 2007-12-01 14:35:51 +00:00
plunky 736a9db087 Clean up the way that bluetooth drivers attach to the bluetooth stack,
to remove the frobbing that drivers must do in the hci_unit structure.

- driver provides a static const interface descriptor
- hci_unit is allocated by hci_attach() rather than part of softc
- statistics are compiled by driver and provided on request
- driver provides output methods and is responsible for output queue
- stack provides input methods and is responsible for input queue
- mutex is used to arbitrate device queue access
2007-11-28 20:16:11 +00:00
kiyohara a6caad5208 #ifndef-ed macro BTBC_DEFAULT_BAUDRATE. 2007-11-25 23:32:44 +00:00
plunky 7cca9485cc convert device printf() usages to aprint_xxxx() 2007-11-11 12:59:02 +00:00
plunky 0b799668fb use more device_t and device_xxx() accessors
make bluetooth stack keep device_t instead of softc pointer as
device is not necessarily part of softc, and pass device_t to
driver callbacks. hci_devname is no longer required.
2007-11-10 23:12:22 +00:00
plunky faccfc336c 'struct callout' => callout_t
don't use callout_reset()
do use callout_destroy()
2007-11-03 18:24:00 +00:00
plunky edb74239aa switch devices to using CFATTACH_DECL_NEW()
softc no longer contains 'struct device' by default
use 'device_t' instead of 'struct device *'
use device_xxx() accessor functions
remove casting of 'xxx_softc *' & 'struct device *'
use aprint_xxx_dev() routines
2007-11-03 17:41:03 +00:00
ad a2a3828545 machine/{bus,cpu,intr}.h -> sys/{bus,cpu,intr}.h 2007-10-19 11:59:34 +00:00
kiyohara 3c75d069ac Whenever writing once, m_adj() is called.
Do not call m_adj() by 0 when it is "rlen==m_len" and is not empty in the
  buffer.
Must call m_adj().
2007-10-16 13:47:17 +00:00
plunky 41358e9b10 remove unused activate function 2007-10-02 05:37:50 +00:00
kiyohara 856df7f0ec Regen. 2007-09-22 20:01:21 +00:00
kiyohara 9d97e5427a Add TDK Bluetooth PC Card.
and reorder.
2007-09-22 19:59:55 +00:00
kiyohara bfdbbbaec2 No need to check the NULL, m_gethdr() was called always with M_WAIT. 2007-09-03 12:42:50 +00:00
dyoung dcd8923429 Change a bazillion occurrences of code resembling this,
error = (cmd == SIOCADDMULTI) ?
	    ether_addmulti(ifr, &sc->sc_ec) :
	    ether_delmulti(ifr, &sc->sc_ec);

	if (error == ENETRESET) {

to this,

	if ((error = ether_ioctl(ifp, cmd, data)) == ENETRESET) {

which does the same thing.

(A bazillion is a very large number.  This seems to make the i386
ALL kernel smaller by 3kB to 4kB.)

Use ifreq_getaddr() twice in es(4).

Whitespace nits.
2007-09-01 07:32:22 +00:00
dyoung f59a11881a Constify: LLADDR() -> CLLADDR(). 2007-08-29 22:33:42 +00:00
kiyohara 37899c17de Regen. 2007-08-20 00:32:38 +00:00
kiyohara 10448cd503 Add support for AnyCom BlueCard. 2007-08-20 00:29:43 +00:00
kiyohara 3f11af6413 Replace to Matthew Orgass's slhci(4).
http://mail-index.netbsd.org/tech-kern/2007/06/26/0001.html
2007-08-16 02:30:22 +00:00
kiyohara 44c89c7646 Replace to Matthew Orgass's slhci(4).
http://mail-index.netbsd.org/tech-kern/2007/06/26/0001.html
2007-08-15 03:53:08 +00:00
plunky cd917419d2 add detail (in comments) about S-Record format for firmware file 2007-07-23 18:08:20 +00:00
ad 88ab7da936 Merge some of the less invasive changes from the vmlocking branch:
- kthread, callout, devsw API changes
- select()/poll() improvements
- miscellaneous MT safety improvements
2007-07-09 20:51:58 +00:00
christos 53524e44ef Kill caddr_t; there will be some MI fallout, but it will be fixed shortly. 2007-03-04 05:59:00 +00:00
ichiro 8c2cbf1a11 make tags for AX420N(NEC Infrontia) 2007-02-10 03:16:07 +00:00
ichiro cbc9432f39 regen. 2007-02-10 03:14:56 +00:00
ichiro 2507232198 add AirH pcmcia modem.
NEC Infrontia AX420N
2007-02-10 03:14:03 +00:00
cube ecacf90d2f Remove stale config(5) entries for unexistent wl(4).
Ok'd by matt@.
2007-01-09 19:19:09 +00:00
elad 211d7b1c99 Use a single kauth(9) call. 2007-01-05 16:46:27 +00:00
elad d5ebb97b46 Consistent usage of KAUTH_GENERIC_ISSUSER. 2007-01-04 18:44:45 +00:00
itohy d796584488 Don't use esp_pcmcia_enable() before attaching chip driver (ncr53c9x),
since it touches storage allocated by the chip attach function.
The chip driver properly calls scsipi_adapter_addref() /
scsipi_adapter_delref(), and just deleting the esp_pcmcia_enable() call
and the relevant code should be OK.

Fix panic descibed in PR kern/26909.
2006-12-28 16:37:46 +00:00
dogcow be3e9fcde5 fix a (valid) "buf may be used uninitialized" warning/error in DIAGNOSTIC. 2006-12-27 22:07:17 +00:00
alc f8b0309827 CID-3821: don't leak `fh' and close the firmware properly
ok christos@
2006-12-27 18:01:45 +00:00
yamt 8bf7662829 merge yamt-splraiseipl branch.
- finish implementing splraiseipl (and makeiplcookie).
	  http://mail-index.NetBSD.org/tech-kern/2006/07/01/0000.html
	- complete workqueue(9) and fix its ipl problem, which is reported
	  to cause audio skipping.
	- fix netbt (at least compilation problems) for some ports.
	- fix PR/33218.
2006-12-21 15:55:21 +00:00
uwe 4f6d5a41f4 Provide aprint_naive("\n"); in attach. 2006-12-10 03:44:28 +00:00
dsl a985c88ba5 Include the spectrum24y firmware when built as a LKM 2006-11-25 18:06:55 +00:00
dsl f26a3ca423 Make the inclusion of the spectrum24t firmware a config option, default
to enabled.
2006-11-25 17:52:57 +00:00
christos 168cd830d2 __unused removal on arguments; approved by core. 2006-11-16 01:32:37 +00:00
christos c72ed40f25 regen 2006-11-16 00:53:31 +00:00
christos c4f844860a non working dual serial port. 2006-11-16 00:53:16 +00:00
christos 5cbe0fbb62 add another device. 2006-11-16 00:52:48 +00:00
drochner 78c0d69e17 kill the "irq" llocator for pcmcia - this doesn't make sense because
irq mapping is done by the controller, and it is not used anywhere afaict
2006-10-24 20:54:10 +00:00
pooka 5005d343ec * __unused games + other relevant fixes
* give me ANSI C or give me death (at least where it could be easily spotted)
2006-10-16 13:00:36 +00:00
christos 4d595fd7b1 - sprinkle __unused on function decls.
- fix a couple of unused bugs
- no more -Wno-unused for i386
2006-10-12 01:30:41 +00:00
jmcneill f135e0d607 Add "name" parameter to powerhook_establish, to aid debugging. No objections
on tech-kern@
2006-09-24 03:53:07 +00:00
jmcneill 9c01d5a7bc Regen for PR# 15666. 2006-09-23 15:40:16 +00:00
jmcneill e748bee1f6 PR# 15666: EDIMAX EP-4101 PCMCIA card support (patch included) 2006-09-23 15:39:51 +00:00
jmcneill 696fb7f495 Regen for PR# 27840. 2006-09-23 13:21:29 +00:00
jmcneill ee203eb22f PR# 27840: patch for IO DATA PCET/TX-R PCMCIA Ethernet card support 2006-09-23 13:21:01 +00:00
plunky 4f1cbddc12 update to bluetooth device attachment:
remove pseudo-device btdev(4) and inherent limitations

add bthub(4) which autoconfigures at bluetooth controllers as they
are enabled. bluetooth devices now attach here.

btdevctl(8) and its cache is updated to handle new semantics

etc/rc.d/btdevctl is updated to configure devices from a list
in /etc/bluetooth/btdevctl.conf
2006-09-10 15:45:55 +00:00