smb
a5b05fc8d6
Increase the size of UMODEMIBUFSIZE and UMODEMOBUFSIZE. These are the
...
USB input and output buffer sizes; the previous values were fine for
dialup modems, but seriously limited the speed of some high-speed
wireless devices that appear to the system as a umodem.
2006-06-07 18:03:00 +00:00
nakayama
dc8650e97c
Add void cast to functions whose return values are ignored.
2006-06-07 15:34:47 +00:00
nakayama
abcd591292
Make it compile on sparc64.
2006-06-07 15:30:48 +00:00
kent
0b0ab7efe7
* move mixer functions from azalia.c to azalia_codec.c, and
...
rename them like azalia_mixer_foo() to generic_mixer_foo()
* enable codec-specific code to hook any mixer operations such
as creating mixer items, or special handling for a specific
item.
* provide a custom mixer table specific to ALC260
* provide a custom mixer table specific to Fujitsu LOOX
2006-06-07 15:23:59 +00:00
dogcow
938bded698
revert my earlier commit - the /ic/ stuff should go in src/sys/conf/files,
...
not here.
2006-06-07 08:05:53 +00:00
dogcow
a48d248fbb
ral_pci was missing the /ic/ files.
2006-06-07 03:39:43 +00:00
rpaulo
65369074fe
regen
2006-06-06 21:01:04 +00:00
rpaulo
431dc1da44
Attachment framework for the rt2561.c and rt2661.c drivers.
...
From OpenBSD.
2006-06-06 21:00:41 +00:00
rpaulo
9fc70013c7
struct ifnet must be inside sc_ec. Fixes panics on detachment.
2006-06-06 20:48:27 +00:00
tron
6cfd8c69e5
Regen.
2006-06-06 08:54:27 +00:00
tron
132db79f9b
Resolve name conflict between Sun Type 6 and Type 7 USB keyboard.
2006-06-06 08:53:58 +00:00
grant
88b1c2383e
regen.
2006-06-06 06:21:29 +00:00
grant
ca33211023
add Sun type 7 keyboard.
2006-06-06 06:17:59 +00:00
rpaulo
355b4c7b38
Oops, missing arg to firmware_free.
2006-06-06 01:18:25 +00:00
martin
daed41efa2
Add D-Link DWL-610
2006-06-05 21:09:29 +00:00
martin
b8a3ae290a
Regen (DWL-610 added)
2006-06-05 21:08:51 +00:00
martin
a2e2668a27
Add D-Link Air DWL-610
2006-06-05 21:08:18 +00:00
bouyer
02ace2fe6c
Adjust quirk entry for seagate drives. Should fix kern/33637 by Shigeya
...
Suzuki.
2006-06-05 18:22:23 +00:00
rpaulo
c54cf300da
Don't leak memory on error.
2006-06-05 17:00:50 +00:00
rpaulo
7a35a95fe6
Add missing firmware_close().
2006-06-05 16:59:41 +00:00
msaitoh
52532c99c9
add support 82546GB_PCIE(PRO/100MT), 82541ER_LOM, 82547EI_MOBILE,
...
82571EB_COPPER, 82571EB_FIBER, 82572EI_COPPER, 82572EI_FIBER
and 82572EI(PRO/1000PT)
TODO: add i82573 support
2006-06-05 16:06:10 +00:00
xtraeme
045e0f2d3d
it_check(): check values from IT_RES48 and IT_RES52, if both are default
...
values specified by the chip, continue attaching the driver (previously
only checking IT_RES48 was enough and IT_RES52 was ignored).
2006-06-05 15:59:47 +00:00
msaitoh
5d3a49100a
regen
2006-06-05 15:58:55 +00:00
msaitoh
f80e45c34c
add 82541ER_LOM, 82547EI_MOBILE, 82546GB_PCIE(PRO/100MT),
...
82546GB_QUAD_COPPER(PRO/1000MT QP) and 82572EI(PRO/1000PT).
2006-06-05 15:58:15 +00:00
gdamore
b38b3d39ad
Import new HAL 0.9.17.2. Approved by sam@
...
New HAL includes some driver changes to register accesses.
Adds support for WLAN devices on AR5312 family devices.
Adds support 32-bit SPARC ath devices (untested).
ath enabled in SPARC64 GENERIC builds.
This HAL is tested and known to work for i386 PCI devices, SPARC64 PCI devices,
and AR5312 WiSoC devices. MIPS PCI devices appear to be busted (possibly only
on Alchemy hardware, unconfirmed), and cardbus support is untested due to
lack of test hardware.
Please report any new problems with this import to garrett@.
2006-06-05 05:14:37 +00:00
rpaulo
76c6161871
Driver for Ralink chipsets RT2460A, RT2560, RT2561S, RT2561 and RT2661
...
from FreeBSD/OpenBSD that supersedes ral*.[ch].
Not yet enabled because I don't have a CardBus controller to test and it
will most likely crash during detach.
I tried to include our modifications, but if something is missing please
tell me or add it.
Special thanks to minipci.biz for the donation of one PCI RT2661 and
one CardBus RT2661.
2006-06-04 20:38:06 +00:00
rpaulo
a49baeafe7
Generated firmware files for Ralink chipsets 2561, 2561s, 2661.
2006-06-04 20:32:53 +00:00
rpaulo
e2c5d8e671
Framework to build Ralink wireless cards binary firmwares based on
...
Ralink distributed microcode.h.
From OpenBSD.
2006-06-04 20:30:17 +00:00
christos
52514196f1
save another 1K on the stack.
2006-06-04 19:38:32 +00:00
christos
03701dc24f
Don't allocate 1K on the stack.
2006-06-04 19:34:16 +00:00
christos
4de2a1c70e
Don't allocate 2K on the stack...
2006-06-04 19:27:59 +00:00
itohy
90ed6f0bd7
Make compile by gcc 2.
2006-06-04 11:49:02 +00:00
rpaulo
8420a4bdc7
Sean Boudreau: The eeprom bits are shifted out in host order.
...
Also present in the upcoming rt2560.c driver.
2006-06-03 12:02:51 +00:00
nathanw
9822b848e6
Change return type of sdgetdisklabel() from void to int; return an error
...
if readdisklabel() returned an error.
sdopen(): Return an error if sdgetdisklabel() returns an error. This prevents
a crash in spec_open() (and possibly elsewhere) if a sd device is detached in
the middle of sdopen().
2006-06-01 15:53:09 +00:00
jonathan
6e42605bf4
Rework bge_reset() to more closely follow the Broadcom-supplied Linux driver:
...
1. Instead of enabling the buffer manager hardware-FSM only on
pre-5705 devices, initialize the buffer manager on all bge devices.
Modelled on the Broadcom-authored Linux driver.
2. Instead of enabling the memory arbiter hardware-FSM only on
pre-5705 devices, initialize the memory arbiter on all bge devices.
Modelled on the Broadcom-authored Linux driver.
3. Ditto the second copy of code which enables the memory arbiter.
Also, add an XXX asking, why taunt the chip this way a second time?
(The most plausible explanatoin is that enabling the memory arbiter
twice is my own darn fault, likely a cut-and-paste glitch I made many
moons ago, when re-ordering hardware enables to match the Linux drivers.)
2006-06-01 02:20:54 +00:00
jonathan
e8c37e204d
Fix a minor thinko in ascertaining whether or not a bge(4) device is
...
attached via PCI-Express:
The previous code first checked that the bge ASIC-revision matched the
5750 ASIC-revisoin (the bcm5721 has the same ASIC revision). However, the
bcm5752 is also a PCI-Express device, but has a different ASIC revision.
Thus, we were setting sc->bge_pcie to zero for bcm5752s, which in turn
causes bge_reset() to not perform required PCI-Express setup.
The test for a 5750 ASIC revision may (or may not) have been carried
across from the FreeBSD bge(4) driver. FreeBSD's bge(4) does not
properly detect or handle post-5750 bge devices. Instead, FreeBSD's
bge(4) keeps a sofc copy of the ASIC revision, and for post-5750
devices (5752, 5714, ...) overwrites that softc copy of the
ASIC-revision with the 5750 ASIC revision. Thus, the test (mutatis
mutandis, using FreeBDS's softc asic-revision field), was correct for
FreeBSD; but manifestly incorrect for NetBSD.
Mark Davies (mark at mcs.vuw.ac..nz) has confirmed via private email
that this change fixes PR kern/kern/33509: his bcm5752 now works.
2006-06-01 01:46:41 +00:00
uwe
4c3245cf01
Remove redundant semicolon in dev_type_cnbell.
2006-06-01 00:43:37 +00:00
riz
03c11483b9
Add support for the DLink DGE-530T revision B1 (Tested by Tillman
...
Hodgson) and the DGE-560T (untested).
2006-05-31 21:46:32 +00:00
riz
5412a4d276
Regen.
2006-05-31 21:43:25 +00:00
riz
1ff114df3d
Add a couple DLINK product IDs, from OpenBSD.
2006-05-31 21:42:35 +00:00
drochner
4b02662f6c
-add 2 subclasses new in rev. 3.0 of the spec, and fix a pasto in another
...
-get power management rev printing right
2006-05-31 10:01:18 +00:00
uwe
bcd4abc305
If tty that we open already has hpf1275a line discipline set, don't
...
spawn new pseudo-device and wskbd instances.
XXX: The logic for exclusive use needs to be thought out better, but
for now this should at least prevent scores of new hpf1275a/wskbd
being attached if you accidentally set this line discipline on your
serial console.
2006-05-30 01:14:38 +00:00
uwe
f7d6597db0
Miscellaneous cosmetics.
2006-05-29 23:01:08 +00:00
uwe
5807cbeb31
Propagate "static" to linesw method defintions.
2006-05-29 22:17:26 +00:00
uwe
b2d14e97a2
Constify hpf1275a_wskbd_keymapdata.
2006-05-29 21:27:16 +00:00
rittera
98c1d0c0f5
Replaced some #ifdef NDIS_LKM's which were commenting out debugging
...
information with #ifdef NDIS_DBG. Also added a commented out #define NDIS_DBG
to ndis_var.h.
2006-05-29 20:49:03 +00:00
drochner
305932c524
Remove passing of an uninitialized variable found by gcc4.
...
(The variable was not used by the called function, so remove the
argument completely.)
2006-05-29 15:17:29 +00:00
drochner
3a1bb8a2ff
gcc4 found that it can't store
...
#define TULIP_TXTIMER 4
in
u_int32_t tulip_txtimer : 2; /* transmission timer */
gcc4 appears to be right. "tulip_txtimer" is purely used by software,
so give it the full integer.
(Appearently the txtimer could never work.)
2006-05-29 15:12:57 +00:00
blymn
3a0170518a
Clean up bogus whitespace
2006-05-28 13:12:42 +00:00
blymn
8582430c8c
Clean up bogus whitespace
2006-05-28 13:01:46 +00:00
martin
b59e36a073
Move definition of the 'fb' attribute to global scope and make machfb@pci
...
require it. On most archs this does not change anything, but on sparc{,64}
it allows linking of kernels that have machfb as the only framebuffer.
Solution suggested by Quentin.
2006-05-28 08:57:53 +00:00
he
732bd1213b
Remove setting of xs_status to XS_STS_DONE before calling scspi_done().
...
After revision 1.135 of scsipi_base.c, it's a big no-no to set
XS_STS_DONE before calling scsipi_done(). Besides, scsipi_done()
sets XS_STS_DONE itself after checking that it's not already set.
This puts this driver back in working order; before this change
the probe of the logical drives would cause a hang.
2006-05-27 17:56:39 +00:00
rittera
60d227b1f8
Some general cleaning up of if_ndis.c, and if_ndis_pci.c. Added
...
#ifdef NDIS_DBG around some printfs, and deleted some commented out code.
2006-05-26 19:27:49 +00:00
blymn
a88dd3436a
Clean up bogus whitespace
2006-05-26 12:52:45 +00:00
blymn
6b8a344329
Clean up bogus whitespace
2006-05-26 12:39:31 +00:00
blymn
44278a4fa1
Clean up bogus whitespace
2006-05-26 11:52:08 +00:00
blymn
1e545a5a2b
Include kauth header for function prototypes
...
Whitespace cleanup.
2006-05-25 11:24:00 +00:00
wrstuden
d6dd729f42
Add $NetBSD: ids, which work better than $netbsd: ones.
2006-05-25 01:37:08 +00:00
wrstuden
b949192d0f
Style changes from simonb at wasabisystems dot com:
...
Use config_stdsubmatch() instead of our own submatch function.
Use "__inline" in header files and "inline" in .c files.
Make some local function static.
2006-05-25 00:21:45 +00:00
wrstuden
a4dd1e2635
3ware 9000 driver, contributed by Wasabi Systems and written
...
by Jordan Rhody (based on the FreeBSD driver).
Contributed in NetBSD PR 33364.
2006-05-24 23:44:28 +00:00
mrg
27fdcc3d32
'volatile' is not a valid return type qualifier - remove it.
2006-05-24 21:22:36 +00:00
rpaulo
46ecc3073d
First round at adapting to our net80211 stack. Unfinished work, but at least
...
won't make the machine panic.
2006-05-22 21:01:15 +00:00
uwe
24172f6f4d
#include <dev/wscons/wsksymvar.h> as gcc4 doesn't like arrays,
...
pckbd_keydesctab[] in this case, with incomplete element types (older
versions of gcc allow them as long as you don't try to access them).
2006-05-22 20:40:07 +00:00
christos
770d099190
add void casts.
2006-05-22 00:09:34 +00:00
christos
fe6055587f
void casts to functions whose return values are ignored.
2006-05-21 23:56:09 +00:00
christos
b0eb4bc8ee
Remove packed attributes gcc-4 dislikes.
2006-05-21 23:55:22 +00:00
rpaulo
d330ad3005
The check for LMC cards should return NULL, not 0.
...
No functional change.
2006-05-20 14:23:07 +00:00
uwe
64f867a645
Redo previous fix properly. Original code had a typo caused by very similar
...
function and variable names. We need to protect tag comparison b/c we don't
want to perform it against an uninitialized tag.
2006-05-20 12:29:57 +00:00
mrg
a4efc02595
in code that looks like:
...
igsfb_pci_is_console(pci_chipset_tag_t pc, pcitag_t tag)
{
return igsfb_pci_is_console && (tag == igsfb_pci_constag);
}
delete "igsfb_pci_is_console &&" as the address of igsfb_pci_is_console
is always true. thanks gcc4.
2006-05-20 10:31:29 +00:00
mrg
afda9ed915
initialise pos.x and pos.y to appease GCC4.
2006-05-20 07:09:08 +00:00
markd
d6a59139b0
Add Intel 82801GBM/GHM Serial ATA Controller.
2006-05-19 01:27:00 +00:00
markd
99ff72f2ed
regen
2006-05-19 01:24:46 +00:00
markd
95090b8031
Add some devices found on a Dell Latitude D620.
2006-05-19 01:22:58 +00:00
bouyer
38038ac6c0
Add yet another broken 160Gb seagate drive. I though we had found all of
...
them ... reported by Damian Lubosch on current-users.
2006-05-18 19:42:09 +00:00
mrg
f599351ef6
quieten GCC uninitialise variable warnings.
2006-05-18 18:45:48 +00:00
kiyohara
43911ef4e2
Support LM77 Temperature.
2006-05-17 00:10:54 +00:00
pavel
dbbc553deb
Disable hw VLAN tagging, in a similar way that it was done in OpenBSD
...
(src/sys/dev/ic/re.c rev. 1.15). The disabled VLAN stripping is mine.
(The OpenBSD driver forgot to do this.)
The reason is that untagged packets get sometimes tagged incorrectly.
PR 32643.
Approved by martin@.
2006-05-16 22:39:24 +00:00
he
aa1b731e45
Include now needed <sys/kauth.h>, and fold a long line.
2006-05-16 16:49:41 +00:00
kent
e47609747e
If one or more playback filters are applied, minimize loading
...
size of the hardware buffer to improve accuracy of AUDIO_GETIOFFS.
2006-05-16 13:46:19 +00:00
yamt
608bce94cf
- include kauth.h for kauth_authorize_generic.
...
- wrap a long line.
2006-05-15 20:48:19 +00:00
yamt
4b0ca302cc
- include kauth.h for kauth_authorize_generic.
...
- tweak indent for a long line.
2006-05-15 20:47:22 +00:00
yamt
66d08528ca
- include kauth.h for kauth_authorize_generic.
...
- wrap a long line.
2006-05-15 20:40:55 +00:00
christos
91e856a0db
Move the lmc match test in the right place (not in the bsdi match). From
...
David Boggs.
2006-05-15 12:48:52 +00:00
yamt
52da04717a
- include kauth.h for kauth_authorize_generic.
...
- whitespace.
2006-05-15 12:39:05 +00:00
yamt
441bc06826
include kauth.h for kauth_authorize_generic.
2006-05-15 11:17:55 +00:00
yamt
6623bf87ee
- include kauth.h for kauth_authorize_generic.
...
- wrap a long line.
2006-05-15 09:25:09 +00:00
elad
2867b68bc3
integrate kauth.
2006-05-14 21:42:26 +00:00
martin
01903cbdf3
Fix typo in comment. From Mátyás János in PR kern/33477.
2006-05-14 10:25:16 +00:00
christos
c0fdc5190f
XXX: GCC uninitialized
2006-05-14 05:42:43 +00:00
dyoung
7153b68a4a
Make rtwvar.h, rtw.c agree whether rtw_host_rfio and rtw_debug are
...
static or extern. Problem noted by Tom Spindler.
2006-05-14 04:08:09 +00:00
dogcow
12d973491c
gcc4: 'Data' may be used uninitialized in this function
2006-05-14 03:02:14 +00:00
xtraeme
3b291301d4
Remove code for the IT87xxF chipsets, it was included on its own
...
driver (it(4)).
2006-05-13 09:03:21 +00:00
xtraeme
33a96be9f2
Driver for iTE IT87xxF and compatibles hardware monitor. Add
...
commented out entries on GENERIC and GENERIC_LAPTOP.
Adapted from OpenBSD.
2006-05-13 09:02:18 +00:00
gdamore
d92bd53f93
Correct two problems with established timings. First, the wrong hex value
...
was being read due to using the same byte twice.
Second, the ordered list of names was *backwards* in the _edid_modes list.
2006-05-13 00:39:19 +00:00
tsutsui
337a4c703f
According to the i8259 manual, EOI, R, and SL bits belong to OCW2 register
...
so rename them OCW3_* -> OCW2_*.
2006-05-12 10:58:12 +00:00
mrg
0337fbac37
make [OU]READ[124]() real inline functions instead of macros.
2006-05-12 01:25:00 +00:00
mrg
ce51c72be5
quell GCC 4.1 uninitialised variable warnings.
2006-05-11 23:54:39 +00:00
mrg
b18db50b21
cast the return value of several macros that evaluate to "(func() == FOO)"
...
to (void) to avoid "computed value not used" warnings.
2006-05-11 22:26:54 +00:00
gdamore
37aa1cc453
Added entries for edid, ddc, vesagtf, and ddc_read_edid.
2006-05-11 21:11:29 +00:00
mrg
187c39fd03
in uaudio_process_as() initialise ai.aformat and ai.ifaceh.
2006-05-11 19:09:25 +00:00
gdamore
80044be1b4
Change edid_parse() to take the edid structure as argument rather than
...
allocating its own. (This is cleaner since we aren't allocating any
other data in this structure.)
Get rid of edid_free() as a result.
2006-05-11 19:05:41 +00:00
gdamore
6594783dbb
Add EDID framework. (No documentation as yet.)
...
This allows one to query monitors (or use BIOS EDID data) and learn their
default modes, etc. To use this, pass an EDID data block edid_parse(), and
get back nicely parsed data, including precalculated modes using GTF, etc.
The result can be printed using edid_print().
Also, if you want to use GTF to generate modes without EDID, you can use the
vesagtf pseudo-device. vesagtf.c can also be compiled as a standalone program
to generate XFree86 modelines.
2006-05-11 01:49:53 +00:00
mrg
8a90e2b19f
don't try to #define bus_space_read_1() if defined(sparc).
2006-05-11 01:02:59 +00:00
mrg
ea9579cbb2
don't declare ahc_pci_ident_table[] and ahc_num_pci_devs extern, they aren't.
2006-05-11 01:02:15 +00:00
mrg
084c052803
quell GCC 4.1 uninitialised variable warnings.
...
XXX: we should audit the tree for which old ones are no longer needed
after getting the older compilers out of the tree..
2006-05-10 21:53:14 +00:00
kent
856fb95215
fix incorrect ADC list for ALC880.
...
PR kern/33326 by Uwe Klaus
2006-05-10 11:17:27 +00:00
drochner
fa6adb2a78
Disable "1284" device recognition early to work around
...
a misfeature in the mode switching / 1284 code.
(It refuses to switch the port mode to eg "PS2"
sometimes if no device speaking the PnP protocol
is connected. Should be fixed elsewhere, but this
is a can of worms.)
2006-05-10 10:33:40 +00:00
drochner
f4f8d2a3de
remove spl and locking stuff from interrupt handler
2006-05-10 10:27:49 +00:00
uebayasi
4a02e59152
Update URLs to ASAHI KASEI CODECs.
2006-05-10 09:07:57 +00:00
skrll
a9f4c28a3d
Fix a bunch of cast lvalues.
2006-05-10 06:24:02 +00:00
kent
6ad20dfc11
Fixes a bug that audio_offset_t::samples for AUDIO_GETxOFFS has
...
incorrect value. It also affects SNDCTL_DSP_GETOPTR of
ossaudio.
PR: kern/32405 by Stephane Witzman
2006-05-10 01:56:21 +00:00
gdamore
1262ffef31
Handle interlace video refresh modes, so 1024x768i is 87Hz refresh, instead
...
of 43. This corresponds more closely to the mode name as defined by VESA.
2006-05-09 17:51:03 +00:00
rpaulo
a2a222b5c1
Don't use a private variable for storing the desired ssid, the net80211 layer
...
provides that.
From OpenBSD.
2006-05-08 17:12:42 +00:00
jdc
94b7dad338
Remove call that sets XS_STS_DONE before we call scsipi_done().
...
This makes isp work again following the change in r1.135 of scsipi_base.c.
Also tested by David Hopper.
2006-05-07 17:31:48 +00:00
kent
72804b8f8c
Don't assume the device always has PCI_MAPREG_MEM_TYPE_64BIT.
...
This change might help nForce 410/430 support.
2006-05-07 08:31:44 +00:00
jmcneill
b95c4318a3
Add __KERNEL_RCSID.
2006-05-07 01:54:39 +00:00
jmcneill
462acc087a
Add support for the Intel PIIX4 power management controller, from OpenBSD.
2006-05-07 01:32:42 +00:00
elad
228eae7a90
add missing vrele(), from blymn@.
2006-05-06 13:25:36 +00:00
thorpej
fb44a8574b
Remove the devprop API and switch everthing over to the new proplib. Add
...
a new device_properties() accessor for device_t that returns the device's
property dictionary.
2006-05-05 18:04:41 +00:00
drochner
50d235e444
make sure "radiotap" capture data are aligned,
...
thanks to Pierrick Brossin for verifying the effect on "tcpdump" output
2006-05-05 09:04:05 +00:00
simonb
5754da5b7f
Add missing "return 0;" from WSDISPLAYIO_SMODE case in voodoofb_ioctl().
2006-05-04 02:18:11 +00:00
kiyohara
c8693c641b
Back out for 1.94 from 1.93.
2006-05-03 00:37:44 +00:00
martin
c6795868de
Fix some comments, mostly from Nenad Crnko in PR kern/33402.
2006-05-02 08:31:02 +00:00
rpaulo
77ff29031a
aprint_debug -> aprint_error.
2006-05-01 20:43:46 +00:00
rpaulo
5cd433e986
My laptop sends DeviceCheck instead of PowerSourceStatusChanged.
2006-04-30 20:44:35 +00:00
xtraeme
f9a0ff490e
regen
2006-04-30 18:58:19 +00:00
xtraeme
36b60342ff
PR kern/32849: pcidevs update for Intel 82801CA AC'97 Modem Controller.
...
Apply patch from Nicolas Joly.
2006-04-30 18:57:51 +00:00
xtraeme
c28f2b42a3
PR kern/32885: adt7463 i2c device does not always unlock i2c bus on error.
...
Apply patch from Nicolas Joly.
2006-04-30 18:54:20 +00:00
xtraeme
53ef4625e0
PR kern/32913: amdpm(4) smbus/i2cbus needs locking. Apply patch
...
from Nicolas Joly.
2006-04-30 18:46:18 +00:00
xtraeme
22f565fb88
Add missing 'arp' keyword for the nfe driver, reported by Murray
...
Armfield in PR kern/33384.
2006-04-30 17:56:03 +00:00
xtraeme
ef9797bf50
regen
2006-04-30 17:33:46 +00:00
xtraeme
5140e8073f
PR port-amd64/33393: viaide driver patch for VT8237R SATA.
2006-04-30 17:33:17 +00:00
kiyohara
8e6f9eeb0a
Fix memory leak.
2006-04-30 14:18:40 +00:00
kiyohara
b6f53afe55
Use An appropriate flag in macro fw_bus_dma_*.
2006-04-30 14:14:06 +00:00
kiyohara
f4eda9f835
use fw_bus_dmamap_create().
2006-04-30 14:03:11 +00:00
kiyohara
a187d57e17
Indented.
2006-04-30 13:54:18 +00:00
kiyohara
413954f079
Remove sync-ope for descritor of DMA, because its descriptor set
...
BUS_DMA_COHERENT flag.
2006-04-30 13:49:32 +00:00
kiyohara
4968634056
Do microtime() before return.
2006-04-30 13:25:04 +00:00
kiyohara
dd76308798
Coordination of macro fw_bus_dma_tag_create().
2006-04-30 13:15:01 +00:00
kiyohara
3575b136a0
Remove `;'.
2006-04-30 12:47:32 +00:00
kiyohara
12730f6820
No parentheses are needed around the return value.
2006-04-30 12:28:21 +00:00
kiyohara
2b88be7cb6
Indented.
2006-04-30 12:11:58 +00:00
rpaulo
a1c7943ca0
Describe the capabilities supported.
2006-04-29 16:46:11 +00:00
rpaulo
3dd0f930ba
There's no power management support under ipw, so don't announce it to
...
the net80211 stack.
2006-04-29 16:43:40 +00:00
gdamore
9859995cc0
Regen.
2006-04-29 02:10:09 +00:00
gdamore
2c111ff670
Add Audigy4 device id.
2006-04-29 02:08:47 +00:00
tsutsui
9c9326fb6d
Free one more resource on attach failure.
2006-04-28 15:42:18 +00:00
rpaulo
35acb56df5
bzero -> memset
...
bcopy -> memcpy
2006-04-28 14:17:13 +00:00
rpaulo
e0a9e3e48a
Print the Ethernet address on attachement.
2006-04-28 13:59:59 +00:00
rpaulo
7722935971
ANSIfy.
2006-04-28 13:47:29 +00:00
rpaulo
921f82874c
Use aprint family of functions.
2006-04-28 13:43:15 +00:00
christos
c1bacdf420
Regen
2006-04-27 21:33:42 +00:00
christos
da964967e6
PR/33382: Jonathan A. Kollasch: add devlogic for another com(4) at isapnp(4)
2006-04-27 21:33:23 +00:00
jonathan
faecb6a29c
Add an default entry to bge_majorrevs[] for bge chips with the 5780
...
ASIC revision.
Add (accidentally omitted) PCI product-ID entries for the BCM5780 and
BCM5780 (Serverworks HT-2000 to bge_products[], so that bge_probe()
will attach bcm5780 variants. Tested on a bcm5780.
Handling for the bcm5780S with 1000base-X PHY almost certainly has the
wrong quirks; our quirk entries are driven off ASIC ID. However, the
5780 (usually integral copper) and 5780S (TBI?) have the same ASIC ID.
The Linux drivers ascertain whether to use integral copper phy or external
PHY via EEPROM bits.
I suspect the only way we're going to handle the 5780 vs. 5780S
properly is to add exact chip-id matches for all 5780/5780S variants
to bge_revisions[]. However, I don't know those ids until other users
with bcm5780s hardware can get this revision, try it, and report the output.
So, here goes.
2006-04-27 18:09:54 +00:00
jonathan
c18e4919a2
regen sys/dev/mii/miidevs{,_data}.h from miidevs 1.66 after addition
...
of PHY ID for BCM5780 (serverworks HT-2000) integral 1000base-T PHY.
2006-04-27 16:45:04 +00:00
jonathan
ec17638ca8
Add PHY ID for the integral 1000base-T PHY in the bcm5780 (also known
...
as Broadcom/Serverworks HT-2000). Following the Broadcom-supplied
Linux driver, update brgphy.c to treat the bcm5780 integral copper PHY
just like the 5714/5715 PHY.
For NetBSB-3 pullup purposes, this commit includes:
src/sys/dev/mii/miidevs revision: 1.65 -> 1.66
src/sys/dev/mii/brgphy.c revision: 1.26 -> 1.27
plus a regen of src/sys/dev/mii/{miidevs.h,miidevs_data.h}.
2006-04-27 16:43:14 +00:00
jmcneill
ecfb43361d
Disable my aggressive power saving changes; they're causing too many
...
problems.
2006-04-27 12:21:39 +00:00
rpaulo
b93659c243
Make wtintr() prototype static too.
...
In wtsense(), make msg local variable const.
2006-04-26 17:21:30 +00:00
rpaulo
accfad23f5
Put back sys/proc.h for wakeup/tsleep.
...
Fix more typos.
2006-04-26 17:19:50 +00:00
rpaulo
9f28da272d
Make 3rd argument of wtwait() const.
2006-04-26 17:18:41 +00:00
rpaulo
be1f3d0d34
Fix an obvious typo.
2006-04-26 17:17:03 +00:00
rpaulo
1595c18c6b
ktrace-lwp merge.
2006-04-26 17:15:08 +00:00
rpaulo
bf691ec7e3
ANSIfy, statify, KNfy.
...
(and maybe deadfy some day?)
2006-04-26 17:13:27 +00:00
oster
4fafa4cc7a
un-bitrot some of this code (which is not included by default in kernels),
...
and make it build again. XXX: Paritylogging bits still won't build.
2006-04-26 17:08:48 +00:00
rpaulo
e54bb9fc0c
Comment out wl.
2006-04-26 16:19:52 +00:00
rpaulo
6805a4a424
In vga_cnattach(), intialize typestr to NULL.
2006-04-26 16:09:22 +00:00
rpaulo
81cff25ae9
In tgamatch(), ifdef tag test under __alpha__ || arc.
2006-04-26 14:30:27 +00:00
rpaulo
3f247e811d
Comment out glxt.
2006-04-26 13:04:02 +00:00
gdamore
5c69d23f28
Oops! ddc.c was accidentally getting included in *all* kernel configs.
...
Added a new define so it can be included without doing the attach dance.
2006-04-26 06:52:09 +00:00
wrstuden
72a22e2da8
Regen to catch change for 3ware cards.
2006-04-25 23:57:13 +00:00
wrstuden
45d4d97a21
Tweak 3ware 9500 ID, and add 3ware 9550 ID.
2006-04-25 23:55:58 +00:00
gdamore
9f862191dc
Add basic DDC (VESA Data Display Channel) driver for use by framebuffers.
...
Reviewed by jmcneill@ and macallan@.
2006-04-25 21:18:16 +00:00
dyoung
425bb71b7d
Fix a typo in register definitions: looks like somebody copied the
...
CB_SOCKET_STAT_3VSOCK definition to CB_SOCKET_STAT_XVSOCK and
CB_SOCKET_STAT_YVSOCK definitions without updating the numbers.
It doesn't look like CB_SOCKET_STAT_XVSOCK and CB_SOCKET_STAT_YVSOCK
are used anywhere, so this will not make any functional difference.
2006-04-25 04:22:15 +00:00
jld
97297f3775
Make ccdioctl work without a process context; fixes xbdback-on-ccd.
...
Run by tech-kern on 2006-04-24; with approval and advice from wrstuden@.
2006-04-24 21:35:57 +00:00
jmcneill
1ced2c897c
Add splash, vcons, vesabios, vesafb.
2006-04-24 14:12:21 +00:00
rittera
a96342da61
a few cosmetic changes to if_ndisvar.h
2006-04-24 00:10:17 +00:00
rittera
3441c2e772
Replaced all the device_printf's in if_ndis_pci.c with aprint_error()
2006-04-24 00:01:29 +00:00
rittera
03f0a1ac3d
Replaced all the device_printf's in if_ndis.c with aprint_error() or
...
aprint_normal(). Now I just need to go through and do this for the rest of the files.
2006-04-23 22:53:43 +00:00
rittera
bad11dd7e0
Replaced the device_printf's in ndis_ticktask() with printf(). For some reason
...
a uvm fault was occouring here. I'm still looking in to figuring out why, but
this fixes the problem for now.
2006-04-23 19:30:19 +00:00
rittera
9225a5f961
A number of cosmetic changes to if_ndis.c. A lot of work needs to be done
...
cleaning up all the NDIS files.
2006-04-23 02:55:04 +00:00
christos
9df2078720
Make this compile again.
2006-04-23 00:08:50 +00:00
christos
16843a2657
Make this compile again. We really need an ALL kernel.
2006-04-22 23:56:39 +00:00
martin
159e915384
Backout previous: bus_space_handle_t is an opaque type and can not be
...
initialized savely.
2006-04-21 08:39:30 +00:00
christos
700c4bf2b7
Put back the code that avoids matching the lmc card. As pointed out by David
...
Boggs, it does not matter if the lmc driver routine returns 100 for the match,
because if the lmc driver is loaded via an LKM after boot, the other drivers
would have claimed the card already.
2006-04-20 17:08:20 +00:00
christos
3d76b885e1
New version from David Boggs.
2006-04-20 16:51:57 +00:00
blymn
10df330c85
Prefix iostat structure elements with io_
2006-04-20 12:13:51 +00:00
gdamore
c5c8b2714a
Regen.
2006-04-20 01:15:19 +00:00
gdamore
62e9e94873
Add a bunch of additional Radeon entries, and correct/cleanup a few of them
...
for consistency and to match Xorg. I am assuming that Xorg contains the
correct information, since it actually makes use of this information.
2006-04-20 01:13:47 +00:00
tsutsui
91174570f2
- use M_NOWAIT rather than M_WAITOK for malloc(9) to allocate RX buffer
...
in zstty_attach()
- check a return value of the malloc(9)
Taken from com.c, and somehow this seems to fix PR port-sun2/32420 on tme.
2006-04-19 17:44:07 +00:00
macallan
29f4f9865a
fix some ugly mixup of virtual and physical addresses
2006-04-19 17:41:24 +00:00
jmcneill
f77081f364
Don't use simple_locks; we can't hold them while calling malloc and
...
friends.
2006-04-19 14:10:58 +00:00
jmcneill
a46cb959f0
Protect audio_write's filter graph from being modified in the middle of a
...
write. Fixes the 'audioctl of death' problem (PR#32563).
2006-04-18 19:15:27 +00:00
rittera
be97fc5a95
A number of minor changes for NDIS. (OK'd by phil)
...
1. Removed the makeoptions line from arch/i386/conf/GENERIC. Now
ndis_driver_data.h is simply copied into the kernel build directory instead
of editing the config file to specify its location.
2. Uncommented lines in files.i386 and files.pci related to NDIS. NDIS will
not be compiled into the kernel unless the two lines are uncommented from
GENERIC (I checked using nm), so there is no reason for this to be commented
out.
3. Added ndiscvt to usr.sbin/Makefile.
2006-04-18 16:49:19 +00:00
christos
1736325575
PR/33828: Pawel Chwalowski: Add support for Broadcom BCM5789 chip
2006-04-18 14:53:43 +00:00
pavel
dc9694f7fa
VLAN tags were sent byte-swapped by the gsip driver, because the driver
...
forgets to convert them from the host to the network byte order. Use
bswap16 to convert them. (Not htons, because on a big-endian machine, they
are in the correct byte order initially, but then, they are byte-swapped
by a htole32 call when written to the transmit descriptor. So
byte-swapping is needed in this case too, to compensate for this htole32
call.)
For a similar reason, tags were seen byte-swapped when received on a
big-endian machine. Replace ntohs by bswap16 in the input path too.
(Again, it is needed to compensate for a le32toh call when the receive
descriptor is read.)
Fixes PR 32644.
Tested on 3.0/i386, 3.0/sgimips and current/alpha.
OK by martin@.
2006-04-18 13:07:03 +00:00
rpaulo
2f81fede5b
Use strlcpy instead of strncpy and sizeof. Requested by Luke.
2006-04-18 12:49:02 +00:00
rpaulo
6f2308417e
Remove SIOCKILLFW.
2006-04-17 20:57:24 +00:00
rpaulo
3f57889bb2
Oops, 16 is not enough to store the firmware filenames, use 24.
2006-04-17 19:06:51 +00:00
rpaulo
d9a55567aa
Pull firmload on ipw.
2006-04-17 17:31:43 +00:00
rpaulo
82029f5699
Add /usr/pkg/libdata to the list of FIRMWARE_PATHS in order to be
...
compatible with pkgsrc firmware packages (ipw, iwi, etc).
2006-04-17 17:30:32 +00:00
rpaulo
f32518359d
Use the firmload API to retrive the firmware from the filesystem.
2006-04-17 17:29:08 +00:00
nathanw
611b39a8f6
In scsipi_done(), bail out early if the scsipi_xfer has already been
...
marked as done. Works around one problem with detaching in-use sd
devices, as described on tech-kern:
http://mail-index.netbsd.org/tech-kern/2005/09/22/0002.html
2006-04-17 14:30:40 +00:00
elad
00b7ea1b74
Fix typos.
2006-04-17 13:31:02 +00:00
christos
b42fa2b7b2
Fix typo. Pointed out by brad.
2006-04-17 13:02:01 +00:00
jmcneill
ab7dc1d38d
Use AC97_HOST_INVERTED_EAMP on the Sony VAIO VGN-B1XP. From PR#33272 by
...
Dieter Roelants.
2006-04-16 23:07:16 +00:00
macallan
8c1e0d461d
correct a cast to avoid a warning. Pointed out by he.
2006-04-16 15:41:52 +00:00
christos
e331189f4e
Deal with machines that have inverted eamp power. Data from the FreeBSD
...
driver. Finally sound works on my vaio vgn-t250p.
2006-04-16 07:40:00 +00:00
tsutsui
a5abba7c76
u_intNN_t -> uintNN_t
2006-04-16 00:38:59 +00:00
tsutsui
cae22e3811
Use __arraycount().
2006-04-16 00:35:10 +00:00
tsutsui
b96af9b308
i >= 0 can never be false if i is u_int. Noticed by OpenBSD.
2006-04-16 00:30:22 +00:00
jmcneill
758e32ed76
Add support for the Turtle Beach Santa Cruz. Special thanks to Stephane
...
Witzmann for spending so much time debugging this.
Fixes: kern/18880, kern/24488, port-i386/14260, kern/12603, kern/12723,
kern/24957, kern/23584
Tested on i386 (Stephane Witzmann), alpha (me).
2006-04-15 21:20:47 +00:00
jmcneill
f08bb8f847
* Add a flag AC97_HOST_INVERTED_EAMP. (kern/18880, kern/24488).
...
* Make reset callback optional; not all devices need it. (port-i386/14260, kern/12603, kern/12723, kern/24957).
2006-04-15 21:18:34 +00:00
jmcneill
9832e74c3e
Regen.
2006-04-15 21:15:27 +00:00
jmcneill
d1cc57cfd4
Add entry for Turtle Beach Santa Cruz, and Cirrus Logic CS4615 while we're
...
here.
2006-04-15 21:14:32 +00:00
rpaulo
6885ff5af3
s/#ifdef DEBUG/#ifdef AGP_DEBUG/
2006-04-15 20:23:32 +00:00
jmmv
aec18036fd
Remove the getwschar and putwschar accessops from wsdisplay drivers as
...
requested by uwe@. These were wrong because they were receiving an
emulcookie yet they were accessops (thus having to receive an accesscookie).
Instead, just handle the WSDISPLAYIO_{GET,PUT}WSCHAR ioctls from the
driver's ioctl accessop.
As this reduces the amount of code needed to handle these operations to
two small functions in each driver, remove the WSDISPLAY_CHARFUNCS kernel
option.
Reviewed by, at least, uwe@ and macallan@. No objections in tech-kern@.
2006-04-15 17:48:23 +00:00
he
5c4bf9a124
The type returned by __arraycount() is a size_t, not an int, so print it
...
with %zd and not %d.
2006-04-15 16:36:03 +00:00
tsutsui
ce21617f93
Add AHC_USETARGETDEFAULTS to ahc_flag, which enables to
...
use default target (but not for host) device settings on
ahc(4) interface without its SEEPROM (mostly on-board one).
This flag could be useful if host's BIOS (firmware) initializes
ahc(4) chip with some conservative (async, no tagged queuing etc.)
target settings for minimum support to load its primary loader etc.,
and it will be enabled in each attachment according to MD device
properties(9). Currently this property is set only on sgimips for
O2 on-board aic7880 adapters.
No objection on tech-kern (and netbsd-bugs), and closes PR kern/23276.
2006-04-15 14:22:52 +00:00
martti
09780f733e
Merged changes between OpenBSD rev 1.13 and 1.14.
2006-04-15 12:36:23 +00:00
christos
de067efed8
Revert previous panic change, I'll fix it differently.
2006-04-15 01:07:51 +00:00
christos
407368a46e
Coverity CID 2453: Add negative checks.
2006-04-14 22:52:00 +00:00
christos
24f5b2aec3
Coverity CID 1127: Prevent NULL deref.
2006-04-14 22:43:12 +00:00
christos
4d098765d0
Turn on RAID KASSERTS if __COVERITY__
2006-04-14 22:40:09 +00:00
christos
3456153a3d
Coverity CID 2467: Check that we actually initialized addr before returning it.
2006-04-14 22:32:14 +00:00
christos
0310ff8964
Coverity CID 1542: Off by one in test.
2006-04-14 22:30:13 +00:00
christos
84d09c873a
Coverity CID 1356: Add KASSERT for NULL deref.
2006-04-14 22:25:42 +00:00
christos
df1efb824a
Coverity CID 1122: Add KASSERT to clarify this NULL deref can't happen.
2006-04-14 22:23:52 +00:00
christos
5e10a3922a
Coveriry CID 565: Remove bogus test.
2006-04-14 21:58:25 +00:00
christos
d9cf854027
On second thought, the whole statement is wrong.
2006-04-14 21:53:40 +00:00
christos
69283d75e0
Coverity CID 723: Fix bogus test.
2006-04-14 21:51:35 +00:00
christos
db694f7eca
Coverity CID 1104: Return early if no mbuf.
2006-04-14 21:49:08 +00:00
christos
fc1743863a
Coverity CID 1120: Avoid NULL deref.
2006-04-14 21:47:04 +00:00
christos
b374745c63
Coverity CID 1121: Avoid NULL deref.
2006-04-14 21:44:18 +00:00
christos
a67bc54699
Coverity CID 727: Comment out dead code.
2006-04-14 21:42:37 +00:00
christos
919b776cba
Coverity CID 2696: Don't use SLIST_FOREACH when freeing elements.
2006-04-14 21:39:50 +00:00
christos
7a83393454
Coverity CID 1118: Protect NULL deref.
2006-04-14 21:22:26 +00:00
christos
c56f241b01
Coverity CID 2501: Make it painfully obvious that memh is initialized.
2006-04-14 21:12:00 +00:00
christos
a5fe7389ec
Coverity CID 720: Remove dead code.
2006-04-14 21:06:47 +00:00
christos
62070a9393
Coverity CID 1091: Avoid NULL deref by moving offending code inside if
...
statement.
2006-04-14 20:56:26 +00:00
christos
8b8ee40c22
Coverity CID 1092: Get the status earlier to avoid NULL deref.
2006-04-14 20:53:38 +00:00
christos
1882f76728
Coverity CID 1099: Don't deref NULL if !DIAGNOSTIC
2006-04-14 20:51:41 +00:00
christos
fa0ae9e82b
Coverity CID 1531: Clarify why we cannot overrun static here, and use
...
__arraycount() instead of #define constant.
2006-04-14 20:48:53 +00:00
christos
b7f5449dce
Coverity CID 1534: Fix bogus code and array overruns.
2006-04-14 20:43:11 +00:00
christos
a66f866e5e
Coverity CID 726: Remove bogus test. ni was checked for not NULL lines above,
...
and the if condition tries to free ni!
2006-04-14 20:33:57 +00:00
christos
838d9e686d
Coverty CID 1317: Avoid negative index.
2006-04-14 20:31:28 +00:00
christos
bdbf984fe7
Coverity CID 725: Remove dead code.
2006-04-14 20:20:33 +00:00
christos
e35ee08ce3
Coverity CID 1532: Off-by-one array overrun.
2006-04-14 20:17:34 +00:00
christos
31535ad130
Coverity CID 1081: Avoid NULL deref.
2006-04-14 20:16:02 +00:00
christos
aa3bd36319
Coverity CID 2465: Fix uninitialized variable. XXX: cardbus_mapreg_map()
...
never fails (even when it does not find memory). Perhaps it should?
2006-04-14 20:07:37 +00:00
christos
bb2402826a
Coverity CID 1540: Avoid array overrun
2006-04-14 19:56:40 +00:00