Commit Graph

19658 Commits

Author SHA1 Message Date
manu a4e775f913 regen 2006-01-02 23:12:50 +00:00
manu 8756a32ca6 Add support for nForce430 ATA133 and SATA controllers. My disks now run
at a decent speed.
2006-01-02 23:12:23 +00:00
tron 85c59666a3 Regen. 2006-01-02 21:49:44 +00:00
tron 99e5326f57 Fix cut and paste error. Noted by Bernhard Moellemann. 2006-01-02 21:48:41 +00:00
uwe ba474401d6 In kloader_open print errno if namei or vn_open fail.
Use consistent style for error messages.
While here, return NULL instead on 0 on error.
2006-01-02 20:51:09 +00:00
tron 63f7e82864 Regen. 2006-01-02 12:49:29 +00:00
tron a406c78c32 - Spell NVIDIA as "NVIDIA" instead of "Nvidia". This matches their
website and viaide(4).
- Add entry for builtin ethernet of NVIDIA nForce4 chipset.
  Information provided by Bernhard Moellemann.
2006-01-02 12:48:34 +00:00
heas b6a4c18d48 Contribute to the rnd entropy pool (already attached as a source). 2006-01-02 05:46:25 +00:00
xtraeme 756f4ea6b7 regen 2006-01-01 11:32:41 +00:00
xtraeme fbd6785430 Fix VIA VT8231 product: it's a PCI-ISA Bridge not an IDE Controller. 2006-01-01 11:32:03 +00:00
mjl 1c357819af This part got lost during merging with the sourceforge bktr
driver: "Also make those variables int instead of char so it
can actually hold 454...".
2005-12-30 00:16:32 +00:00
dyoung 7f2abb6134 The RTL8180L works better with a PCI Latency Timer of 0x50 than
with 0x20.  Derived from a reference driver, IIRC.
2005-12-29 22:41:16 +00:00
dyoung 92e2a6beb6 Add support for the GCT Semiconductor GRF5101 transceiver/synthesizer.
From OpenBSD.

GCT will not provide any documentation, so there are many magic
numbers in this code.
2005-12-29 22:27:17 +00:00
dyoung 6910fdde2a Update rtw(4) for the new IBSS merge idiom, where ieee80211_ibss_merge()
does not return ENETRESET if the driver should change its BSSID,
but it makes a RUN->RUN transition, instead.
2005-12-29 22:23:52 +00:00
dyoung a44e108963 Remove declaration of deleted subroutine, atw_change_ibss(). 2005-12-29 22:20:03 +00:00
dyoung 8f13266467 Extract subroutine is_running().
If ieee80211_ioctl() returns ERESTART, reinitialize interface with
atw_init().

Don't discard the error returned by atw_init() in atw_media_change().
2005-12-29 22:04:21 +00:00
dyoung bca4a72a2a atw_start() need not update IFF_OACTIVE if it hasn't put a new
packet on the transmit ring, so don't do that.
2005-12-29 22:01:43 +00:00
dyoung 17fde28ad0 Assert consistency of IFF_OACTIVE / out of sw/hw transmit descriptors
state.
2005-12-29 21:59:07 +00:00
dyoung c64e4a2b46 Cosmetic: shift atw flags right by 4 bits. 2005-12-29 21:53:02 +00:00
dyoung 512b9ec012 Always tickle the Receive Demand Register (ATW_RDR) after re-enabling
the receiver.
2005-12-29 21:51:43 +00:00
dyoung 38c346abf0 A couple changes to the hardware reset:
Wait for the SWR bit in ATW_PAR to turn to 0, instead of waiting
for the whole register to turn to 0.

For ease of comparison with a reference driver, re-order operations.
2005-12-29 21:49:59 +00:00
dyoung 67f05eef6b Cosmetic: make a three-step staircase out of a four-step staircase. 2005-12-29 21:45:56 +00:00
dyoung 0a56b050db Revamp state machine:
1 Only stop beacon generation on an ->INIT transition.

        2 Merge AUTH and ASSOC cases, they do the same thing (tune
          a new channel).

        3 Start beacon generation in IBSS, AP, *and* "adhoc demo"
          mode.

Cosmetic tweak: rewrap a statement.
2005-12-29 21:44:33 +00:00
dyoung 3c1ba11dc5 Adapt atw(4) to the new IBSS merge idiom, where ieee80211_ibss_merge()
does not return ENETRESET to indicate the station should adopt a
new BSSID, but it triggers a RUN->RUN transition, instead.
2005-12-29 21:40:41 +00:00
dyoung 271d64132c Delete atw_media_status(). Let SIOCGIFMEDIA call ieee80211_media_status()
directly for media status.
2005-12-29 21:37:27 +00:00
dyoung 4875b8dbae Use the fragmentation threshold in the ieee80211com.
XXX Need to condition on frame type = data.
2005-12-29 21:34:53 +00:00
dyoung 2e64aa7e41 In atw_init(), always call atw_write_wep() to write the WEP state
to the h/w.  This prevents a spurious call to atw_write_wep() later,
in IEEE80211_S_RUN state, when net80211 times-out ieee80211_nodes.
It is important to avoid a spurious atw_write_wep() call because
in IBSS mode, at least, WEP re-initialization reliably locks up
the transmitter.

XXX There must be a bug in atw_write_wep() that causes it to lock
XXX up the transmitter.  I will revisit it later.
2005-12-29 21:32:06 +00:00
dyoung 13283d6e4f In atw(4), use ieee80211_compute_duration() to compute IEEE 802.11
Duration and PLCP Length fields, and delete the abominable
atw_frame_setdurs() subroutine.

Make rtw(4) use the new ieee80211_compute_duration() calling
convention.

Add an ieee80211_key argument to ieee80211_compute_duration() and
lightly constify arguments.  Get the crypto header length from the
key argument instead of blithely assuming a WEP header.  Add some
inline documentation.  Account for data padding (IEEE80211_F_DATAPAD).
2005-12-29 21:08:26 +00:00
tsutsui 4d4ef38433 Add WSKBD_TYPE_EWS4800 for EWS4800 machines. 2005-12-29 15:24:51 +00:00
silke 644e5cbb9e Regen from revision 1.751 of pcidevs. 2005-12-29 11:07:30 +00:00
jonathan f4ed3d7185 Regen from src/sys/dev/pci/pcidevs rev 1.751, which adds an entry for
the integral PCIe-to-PCIX bridge found in broadcom 5714/5715
PCI-Express dual-port gigabit ethernet chips.
2005-12-29 05:46:34 +00:00
jonathan bb1c86b2be Add pcidevs entry for the (Serverworks?) PCI-Express to PCI-X bridge
chip integral to Broadcom bcm5714 and bcm5715 PCI-Express dual-port
gigabit Ethernet chips.
2005-12-29 05:44:51 +00:00
wiz 5610637f93 Sync with SourceForge 1.5:
revision 1.5
date: 2003/03/13 22:21:04;  author: emsi;  state: Exp;  lines: +17 -18
Fill in band switch crosspoints and use that instead of hardcoded
values in the band switching code. For now fill in the formerly
hard-coded values 160 and 454 until we can find out the real values
for each tuner. Also make those variables int instead of char
so it can actually hold 454...
2005-12-28 20:41:56 +00:00
christos 3b45b5fde4 We don't have access to in_cksum() if no INET. 2005-12-28 09:15:32 +00:00
chs 599510004a use %z when printing a sizeof. 2005-12-27 17:25:41 +00:00
chs 6cb72218d4 switch macppc to use the MI zstty driver.
add macppc's ZS_TXDMA hooks there.
2005-12-27 17:20:54 +00:00
chs 0545b6e0cb changes for making DIAGNOSTIC not change the kernel ABI:
- for structure fields that are conditionally present,
   make those fields always present.
 - for functions which are conditionally inline, make them never inline.
 - remove some other functions which are conditionally defined but
   don't actually do anything anymore.
 - make a lock-debugging function conditional on only LOCKDEBUG.

as discussed on tech-kern some time back.
2005-12-27 04:06:45 +00:00
chs 33d70de438 remove the COM_MPLOCK option. always include the spinlock in the softc
and always call the simple_* locking functions.  the locking functions
are compiled out if they are not needed anyway, so a separate option
for this doesn't gain anything.

this also fixes the serial console on my alpha ES40 (which doesn't make much
sense since the com driver should still be under the big lock on alpha,
but whatever).
2005-12-27 00:46:38 +00:00
yamt 9297401d54 - add ioctls to set/get disk bufq strategy.
- implement them for some drivers.
2005-12-26 10:36:47 +00:00
rpaulo 333596ccdb PR/32386: Dawid Szymanski (arhea). Add support for the 8169SB chipset. 2005-12-25 19:55:40 +00:00
rpaulo e868ae92cb PR/32381: Paul Shupak. Convert to ktrace-lwp. 2005-12-25 18:43:31 +00:00
jmmv 39d0d77704 Let this build when WSMUX_DEBUG is set after the merge of ktrace-lwp. 2005-12-25 17:23:42 +00:00
perry 3d4ed1fbc7 __inline__ -> inline 2005-12-24 23:41:33 +00:00
perry 4a2c58419f __asm__ -> __asm 2005-12-24 23:29:06 +00:00
perry 00d6acb4b6 bare asm -> __asm 2005-12-24 22:59:39 +00:00
perry 93124077ae Remove leading __ from __(const|inline|signed|volatile) -- it is obsolete. 2005-12-24 20:27:29 +00:00
reinoud 19eca236e0 Improve disc size reporting. The current discsize thats reported is the
current recorded extent and not the complete maximum extent of the disc.

An empty CD/DVD disc is seen as having an invalid length and given 800 Mb
size. This makes it possible to write to a CD-R using `dd' as some tend to
do.

However when an extent is recorded the initial recorded length is seen as
valid and is thus set as absolute upperbound to read and write actions
preventing extention of the disc.

Committed after consultation on tech-kern with a positive advice by Manuel
Bouyer.
2005-12-21 13:11:27 +00:00
sekiya 469147a42c I fixed the cardbus bus enumeration problem awhile back, but the interrupt
fixup problems remain.  Adjust TODO comments to match, and add a link to
cube's comments.
2005-12-21 08:48:25 +00:00
skrll 74331c1241 Merge the FreeBSD code and adapt to NetBSD:
- add power management.
	- update ioctl handling.

Fix PR 27439 as the FreeBSD code has joerg's fix for when the RX intr
routine can't allocate a new mbuf.

Fix PR 30806. Thanks to cube@ for testing and some struct ipw_soft_hdr
handling code.

XXX The state machine doesn't sync with the net80211 layer, but that's
XXX not a surprise.
2005-12-20 07:51:38 +00:00
thorpej 5047c6db68 No longer need our own device_t typedef. 2005-12-20 04:31:28 +00:00