Commit Graph

20325 Commits

Author SHA1 Message Date
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