Commit Graph

19124 Commits

Author SHA1 Message Date
christos
d39684a368 make the isdn drivers compile again with -Wconst, -Wshadow 2005-07-09 02:05:09 +00:00
thorpej
99c4ea1319 - Use ANSI function decls.
- Liberally apply static.
2005-07-08 05:07:31 +00:00
thorpej
9beb4d2c61 Remove the __packed__ attribute from these structures. Everything is
naturally aligned anyway, and __packed__ just causes the compiler to
generate slower code.
2005-07-07 19:02:11 +00:00
thorpej
0be3d66be4 Apply const and static where appropriate. 2005-07-07 18:43:47 +00:00
drochner
a8dbed44ea tighten the autoconf constraints by passing the atapi/ata/ata_hl attribute
to config_found()
(after some cleanup we might be able to kill SCSIPI_BUSTYPE_*)
2005-07-07 17:51:31 +00:00
drochner
4a286e2d41 -tighten the autoconf constraints by passing the atapi/scsi attribute
to config_found()
 (after some cleanup we might be able to kill SCSIPI_BUSTYPE_*)
-remove scsipiprint() -- the parts which make it differ from
 scsiprint()/atapiprint() were unreachable anyway
2005-07-07 17:27:37 +00:00
christos
66e17a310f add a missing const. 2005-07-07 12:57:03 +00:00
pooka
b0e100a5fc match & attach Panasonic 50" Touch Panel 2005-07-07 09:59:37 +00:00
pooka
520b2cddab regen for panasonic tp 2005-07-07 09:59:09 +00:00
pooka
1a814357c3 add panasonic 50" touch panel 2005-07-07 09:58:23 +00:00
dyoung
0b81c10899 Cosmetic: use the idiom &ic->ic_nw_keys[0] instead of ic->ic_nw_keys,
just be a little more parallel to &ic->ic_nw_keys[IEEE80211_WEP_NKID]
on the same line.
2005-07-07 00:43:01 +00:00
dyoung
86283b24c9 Don't write WEP keys to the chip unless it is enabled.
Suspend and restart the transmit/receive engines while writing WEP
keys.
2005-07-07 00:12:22 +00:00
dyoung
83a9bf2c5c Historically, an(4), ath(4), atw(4), rtw(4), and wi(4) have printed
out their modes and rates at boot.  Revert to the historical
behavior.
2005-07-06 23:58:14 +00:00
dyoung
707b2b4ae1 Avoid an unnecessary API difference between NetBSD and FreeBSD:
back out my change to ieee80211_crypto_encap that made it free its
mbuf argument on error.  I had thought it was a bug.  It was not.
It's the drivers that are broken.  Make an(4), atw(4), ipw(4),
iwi(4), ral(4), rtw(4), ural(4), and wi(4) free the mbuf when
ieee80211_crypto_encap returns NULL.  Also, return ath(4) to the
way it was---i.e., free the mbuf.

Thanks to Sam Leffler to pointing out my mistake.
2005-07-06 23:44:15 +00:00
bouyer
a5bc956f51 Always allow open() on the raw partition to succeed, even if any of the
SCSI command in cdopen() fails. Fix PR kern/30288 by Pavel Cahyna.
2005-07-06 14:28:39 +00:00
dyoung
674e9b926b Identify Alvarion Ltd. BreezeNET PC-DS.11b. Addresses kern/30231. 2005-07-06 07:16:00 +00:00
dyoung
b01131baed Regen. 2005-07-06 07:06:29 +00:00
dyoung
b34605c1a7 Add Alvarion (vendor) and Alvarion Ltd. BreezeNET PC-DS.11b (product).
From PR kern/30231.
2005-07-06 07:05:25 +00:00
dyoung
05cab81dd8 Don't write the WEP keys to the device if it is invalid (e.g.,
unplugged) or if it is not enabled.  Fixes kern/30592.
2005-07-06 06:49:25 +00:00
thorpej
527d62e0a2 - When starting an ATA or ATAPI transfer, handle the case where (*dma_init)()
returns EINVAL, indicating that DMA cannot be done for this transfer.
  Fall back to PIO in this case.
- Add a geodeide_dma_init() routine that checks to make sure that transfers
  start on a 16 byte boundary, returning EINVAL if not.  Works around a chip
  bug that causes a hard system hang.

Problem reported and patch tested by Erik Fair.
2005-07-06 01:46:52 +00:00
he
c92bbdc733 Follow up after adding const by doing some more. 2005-07-05 22:20:47 +00:00
he
3bed0ba4dd Add const to arrays initialized with string constants.
Found while compiling for vax (why wasn't this caught by newer gcc?)
2005-07-05 22:15:41 +00:00
drochner
6d8bb016f7 update PCI/Cardbus ral wlan driver, and adapt to new FreeBSD/NetBSD
80211 framework, from FUKAUMI Naoki per mail to tech-net
2005-07-04 17:50:09 +00:00
drochner
c2ddc13a41 some fixes and cleanups to the USB-ral wlan adapter, from FUKAUMI Naoki
per mail to tech-net
2005-07-04 17:46:31 +00:00
drochner
95ecbce6dc regen 2005-07-04 17:43:15 +00:00
drochner
f63f021442 add another wlan adapter 2005-07-04 17:42:39 +00:00
augustss
b9c28e0fc4 Regen. 2005-07-04 05:55:26 +00:00
augustss
1f2a8d34c4 Correct product id for the Hank Connection device. 2005-07-04 05:55:05 +00:00
augustss
dd0aaa93b5 The SB400 SATA controllers seem to work fine for me with this driver. 2005-07-04 01:20:37 +00:00
dyoung
c1446c092d Locking changes.
+ Synchronize ath_calibrate() with ATH_LOCK()/ATH_UNLOCK().  Thanks
  to Steve Woodford for suggesting this fix.  This patch stops
  ath(4) from generating messages "hardware error; resetting" while
  Steve's D-Link DWL-AG650 card is operating (kern/28385).  The
  MiniPCI wireless adapter on one of my Soekris boards also operates
  more reliably following this patch.

+ Use ATH_LOCK_IMPL() and family to synchronize access to the
  transmit queue, also.
2005-07-03 19:58:16 +00:00
dyoung
f069ffb8c5 Create per-instance sysctl nodes for ath(4), e.g., hw.ath0.debug,
hw.ath1.debug.
2005-07-03 19:44:50 +00:00
dyoung
3ba3e0571b Bug fix: send all multicast data frames at the lowest possible data
rate, with short preamble turned *off*.  Fixes IBSS operation,
where multicast frames were sent at the highest possible rate with
short preamble turned *on*, so the likelihood of reception was
relatively low, and there was no chance for stations w/o short
preamble capability to receive the frames.

XXX This is a quick fix that I will revisit very soon.  Multicast
data frames are eligible to be sent with short preamble in
IEEE80211_M_STA, IEEE80211_M_HOSTAP modes.  An AP knows who all of
its peers are at all times, so it can make an intelligent decision.
Ditto the AP client.

XXX The rate adaptation should be involved in choosing short/long
preamble.  Also, we can make a reasonable choice of a higher
multicast data rate based on statistics gathered by the rate
adaptation module.
2005-07-03 19:42:10 +00:00
dyoung
967b5afe90 Cosmetic: repair indentation. 2005-07-03 19:31:03 +00:00
dsainty
9c7c838ae3 bthcipoll must not return <sys/errno.h> error codes, return POLLERR/POLLHUP
instead.  Fixes a small part of PR/30566.

Also check for a set 'dying' flag here, and include it in the POLLHUP
case.
2005-07-02 07:50:34 +00:00
dsainty
867423adde Force LBA48 access to ST3160827AS drives. Without this change the entire
system hangs whenever a read or write request to sector 0xfffffff occurs.

The hang appears to happen when:

status = bus_space_read_1(wdr->cmd_iot, wdr->cmd_iohs[wd_status], 0);

is executed in __wdcwait(), and it is not possible to enter the debugger or
make the system respond at all after this point.

Whilst not necessarily the most prudent solution to handling the large number
of drives that exhibit this problem, it is currently the popular workaround.

[An alternative approach is to just always drop to LBA48 if the request
happens to pass by sector 0xfffffff and the drive reported as larger than
0xfffffff sectors.  My understanding is that the 32 bit addressing below
0x10000000 is purely there as a performance booster, not to resolve a
compatibility issue.]
2005-07-02 04:29:01 +00:00
drochner
8728cee448 add autoconf glue for the ralink wireless drivers, basically from
PR kern/30449, but changed so that pci/cardbus and usb devices
are all called "ral" to the user, so that code can be shared eventually
2005-07-01 20:11:20 +00:00
drochner
c1834d85c2 add drivers for Ralink RT2500-based wireless adapters, written by
Damien Bergamini, ported and submitted by FUKAUMI Naoki per PR kern/30449
I've modified the USB "ural" driver for recent changes to the NetBSD
ieee80211 framework, possibly not completely, but with an ASUS wireless
adapter I'm getting some signs of life.
Didn't care about pci/cardbus for now, hopefully someone with hardware
will do it.
2005-07-01 20:06:56 +00:00
drochner
13d05c6f40 regen 2005-07-01 19:39:13 +00:00
drochner
35afa0f995 add ralink dev IDs, from FUKAUMI Naoki per PR kern/30449 2005-07-01 19:37:59 +00:00
martin
5d90a83160 constify 2005-07-01 15:05:07 +00:00
augustss
d4af4ffb2b Regen. 2005-07-01 11:37:10 +00:00
augustss
606a246ce6 Add Hank wireless keyboard&mose used by HP. 2005-07-01 11:36:39 +00:00
augustss
6f150bbce9 Regen. 2005-07-01 11:00:23 +00:00
augustss
7f1e7d90e6 Add the ATI SB400 chip set and the Radeon X850 XT graphics card. 2005-07-01 10:59:32 +00:00
sekiya
13e5f23389 Fix up interrupt line when line == 0. Discussed with christos@ 2005-06-30 22:28:03 +00:00
christos
66276ec095 There is an error when we return -1, not < 1. 2005-06-30 19:31:53 +00:00
macallan
754d79402b Allow sparc64-style attachment of mouse and keyboard via zstty, needed for
wscons support.
Reviewed by uwe.
2005-06-30 12:07:51 +00:00
dyoung
380ab420c3 Fix $FreeBSD$ RCS IDs, which gave me a real shock when their revision
numbers moved backwards.
2005-06-30 00:52:56 +00:00
kent
920709a3ed add:
acphy acpi acpiacad acpibat acpibut acpiec acpilid acpitz agp
ahd amhphy artsata ataraid ath bge bmtphy brgphy cec ciphy cms
cs80bus esiop gentbi geodeide glxtphy gphyter gpib gsip hcide
iavc ipw iteide iwi iwic makphy mpt nsclpcsio pdcsata pxg
satalink ste stge sti tfb txp ubsa ubsec udav
2005-06-29 14:57:22 +00:00
macallan
c3d39ccf44 deal with more than one cgsix, make sure to get things right even when none
of them is the console.
2005-06-28 20:55:21 +00:00