Commit Graph

23382 Commits

Author SHA1 Message Date
oster
ce72acea08 rf_debugMem.c: remove unused 'rc' variable for RF_DEBUG_MEM.
rf_driver.c: minor comment tweak.  Improve debugging output in
             RF_DEBUG_QUIESCE.
rf_states.c: fix argument to rf_PrintDAGList() in the
             RF_DEBUG_VALIDATE_DAG case.


Changes from Olivier Cherrier.  Thanks!!
2008-02-12 03:12:41 +00:00
dyoung
ab81f0ffe6 Constify ahc_set_name(), ahc_name(). Do not free(9) memory that
may not belong to us.
2008-02-11 21:43:46 +00:00
xtraeme
7794776b36 Attach ahcisata(4) to any RAID controller that supports AHCI, and make it
pass the ATAC_CAP_RAID capability for them. ok'ed by bouyer@.
2008-02-11 08:23:48 +00:00
dyoung
6127f4ed3f Don't get under the device_t abstraction by measuring the length
of dv_xname, especially not to set the length of a buffer that
(apparently) belongs to the kernel ABI.  Instead, set the buffer
length to 16, which is the current length of dv_xname.
2008-02-11 03:36:25 +00:00
ichiro
bb98e5cd32 regen. 2008-02-11 02:23:32 +00:00
ichiro
f5c8edbfe7 add new device support to uhmodem driver
PR/37985 from Yojiro UO
2008-02-11 02:23:09 +00:00
ichiro
8bc3916209 regen 2008-02-10 10:59:44 +00:00
ichiro
bc141ac1b8 add few devices
PM965 interface
2008-02-10 10:59:18 +00:00
skrll
199fb5f423 Use PRIu64 in a DPRINTF. 2008-02-10 10:33:10 +00:00
skrll
5c7461ba78 More whitespace and RCSIds. 2008-02-09 19:14:53 +00:00
ober
0a7ceb2bfb Clean up white space and KNF everything. 2008-02-09 18:19:33 +00:00
ober
5b57893f60 Intel PRO/Wireless LAN 4965AGN Mini-PCI Adapter Driver ported from OpenBSD
by deroote@.  OK nick@ moof@
2008-02-09 12:25:43 +00:00
xtraeme
96da5b3142 lm_refresh_volt: don't overwrite the state of the sensor. Patch by
Fukumoto Atsushi - PR kern/37977.
2008-02-07 20:35:44 +00:00
xtraeme
b2498de159 Move a debug printf into the ATA_RAID_DEBUG block. 2008-02-07 13:48:33 +00:00
dyoung
2ccede0a9c Start patching up the kernel so that a network driver always has
the opportunity to handle an ioctl before generic ifioctl handling
occurs.  This will ease extending the kernel and sharing of code
between drivers.

First steps:  Make the signature of ifioctl_common() match struct
ifinet->if_ioctl.  Convert SIOCSIFCAP and SIOCSIFMTU to the new
ifioctl() regime, throughout the kernel.
2008-02-07 01:21:52 +00:00
dyoung
f89026db01 Make some RE_* constants aliases for their generic ethernet
counterparts, whose values are the same.
2008-02-06 22:51:02 +00:00
dyoung
efad92c959 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.
2008-02-06 22:11:54 +00:00
dyoung
5c1733cd95 Assert that 'offset' is divisible by four, since we're using it to
index a PCI configuration register.
2008-02-06 22:06:28 +00:00
ad
d7f6ec471c Don't lock the socket to set/clear FNONBLOCK. Just set it atomically. 2008-02-06 21:57:53 +00:00
joerg
577c689497 Don't use misaligned PCI config access. Reported by Christoph Egger. 2008-02-06 16:50:38 +00:00
elad
08a754e331 It's KAUTH_REQ_DEVICE_RAWIO_PASSTHRU_*.
Noted by dogcow@, thanks!
2008-02-06 12:13:47 +00:00
elad
6f361f7379 - There is no XYCMD_WRP -- forgot to remove it along with the XYCMD_RDP :)
- Add missing '}'

Noted by dogcow@, thanks!
2008-02-06 12:08:34 +00:00
ichiro
84528b0430 regen 2008-02-05 18:22:31 +00:00
ichiro
8cf4b4059b added some devices of "PCI-Cardbus bridge" 2008-02-05 18:22:09 +00:00
simonb
de8ac4a1b6 Print the "bus-master DMA support present" message out the same
other a few other SATA drivers do.  Nicer output than just a line
with ": DMA" on it...
2008-02-05 07:02:00 +00:00
simonb
d07d2923b8 Remove an extra \n from an attach message. Get's rid of a blank
line during boot.
2008-02-05 06:52:26 +00:00
mlelstv
527bf7ecad Check wether interrupts originate from the bge hardware.
Fixes PR kern/33433.
2008-02-04 21:44:35 +00:00
elad
38012644ad Properly classify kauth PASSTHRU requests.
Done with much help from chuck@, thanks!
2008-02-04 21:08:13 +00:00
tsutsui
e09797feab FreeBSD says "16 bits" comment about RTK_GTXSTART was incorrect.
Use CSR_WRITE_1() for it. (though the previous code also worked)
2008-02-04 15:16:49 +00:00
joerg
201546aaac Fix quirk to clean only PCI register 0x6a and 0x6b, which is likely
what the original code intended. This avoids the unaligned access.
According to jmmv@'s testing, this seems to work.
2008-02-04 14:12:25 +00:00
tsutsui
b143589a1b No need to preserve RE_NTXDESC_RSVD on re_start(). 2008-02-03 17:14:35 +00:00
drochner
d9459c5f21 share some code for USB root hub emulation which is common in the 3
host controller implementations, start with two little functions
which fake up string descriptors (which were inconststent, language
table fetching didn't interoperate with other code in the tree)
2008-02-03 10:57:11 +00:00
mjf
b1c9a380e4 Match up some VOP_OPEN()S with VOP_CLOSE()s. This allows the root
file system to be identified properly again.
2008-02-02 16:15:01 +00:00
tron
9cb1a5317f Avoid using a stale PCI chipset tag pointer. This avoids panics while
attaching a 3Com 3C996B-T on my ULTRA60. Reviewed by Matthew Green.
2008-02-02 12:12:09 +00:00
hannken
6a545682ed ccdbuffer(): add missing initialization of new bufs b_objlock. 2008-02-02 10:40:50 +00:00
tls
9b6c682b45 From Darran Hunt at Coyote Point: don't truncate HMAC to 96 bits unless
actually asked to.

Fixed in FreeBSD a while ago, discussed on tech-kern and tech-crypto.
2008-02-02 02:39:00 +00:00
xtraeme
b5abdb42f6 Destroy the callout via sysmon_envsys_destroy() now that it's
initialized in sysmon_envsys_create().
2008-02-02 02:02:37 +00:00
dyoung
46be8b643f Fix a two races between the initialization code and cbb(4) interrupts:
establish the interrupt handler before enabling interrupts, so that
we will not get an interrupt storm that keeps the system from making
any progress.  (We may have only been susceptible to the storm if
cbb(4) shared an interrupt with, say, uhci(4)).  Also, finish
setting up the pcic_handle before enabling interrupts, so that the
Pcic_read() call in pccbbintr() will not jump to address 0!

Now, pccbb_intrinit() encapsulates all of the interrupt initialization.

Explicitly enable card-status changed (CSTSCHG) events.

Paranoia: ensure that writes to the socket event register (interrupt
acknowledgements) are flushed to the h/w by reading the register
(gross).  We really need something like
bus_space_sync(BUS_SPACE_BARRIER_WRITE_BEFORE_INTERRUPT).

More paranoia: in pccbbintr(), if the device is inactive, get out.
2008-02-02 00:31:25 +00:00
xtraeme
74a0270856 aiboost_getcomp: use Package.Count to allocate and iterate over
the elements rather than Integer.Value, which sometimes doesn't
match and gives unexpected results on the error path.

This fixes the kmem_poison_check on DEBUG kernels (finally). Patch
by Fukumoto Atsushi. Thanks!
2008-02-01 23:12:30 +00:00
dyoung
b31e1f190c Use aprint_*_dev() and device_xname() instead of accessing dv_xname
directly.
2008-02-01 21:13:44 +00:00
jdc
0806e2a957 Disable HW RX TCP4 checksums because it is buggy (it appears to only checksum
src IP, dst IP and packet len).

Also, remove the "MAC rx fault" redundant printf().
2008-02-01 11:03:19 +00:00
jdc
129b6bc9a9 Set the chip revision in the softc. 2008-02-01 10:58:28 +00:00
jdc
16d4e38d4d Add GEM_IS_SUN macro, and chip revision to the softc. 2008-02-01 10:53:25 +00:00
markd
906c80684e s/AD1983_EVENT/AD198X_EVENT/ 2008-01-31 19:01:50 +00:00
markd
5dc269fc53 Use more meaningful names for AD1984 widgets.
Select dac as default input for internal mono speaker.
Handle jack pin detect for headphones and lineout on Dell Optiplex 755.
2008-01-31 18:58:57 +00:00
dyoung
3d8a594471 Let the compiler decide: inline -> static, register -> . 2008-01-31 18:45:45 +00:00
dyoung
8c145c8134 Cosmetic: constify, KNF, use device_t and accessors, use
aprint_normal_dev() instead of printf("%s: ...", dv->dv_xname).
2008-01-31 18:32:51 +00:00
jmcneill
89cbafc849 AD1984: Create a dummy outputs.master mixer knob that mirrors inputs.dac,
since AD1984 doesn't have a traditional master volume control.
2008-01-30 23:03:09 +00:00
jmcneill
77c34d4c1c AD1984: Use the same DAC for speaker and headphones, so the headphone jack
works as expected on Thinkpad T61 (and probably others).
2008-01-30 22:09:00 +00:00
ad
df774def20 Hold v_interlock when adjust v_writecount. 2008-01-30 15:42:52 +00:00