Commit Graph

27645 Commits

Author SHA1 Message Date
jakllsch
25b14350ac Actually, 31244 does not refer to the Silicon Image SiI3124,
but the now-obscure Intel GD31244.
2010-12-12 00:38:07 +00:00
matt
a4b81bfcbe Fix typo (31224 -> 3124) and constify an array. 2010-12-11 22:45:31 +00:00
matt
100760831a On powerpc, recognize PCI Express RC root bridges. 2010-12-11 18:25:02 +00:00
matt
13920aa54a Add code to display MSI capabilities. 2010-12-11 18:22:24 +00:00
matt
dc6c35603f Switch to kmem from malloc.
Don't actually set the PREFETCH64 base/limit registers unless they really are
in use.
2010-12-11 18:21:14 +00:00
matt
999a2b8caf arcmsr needs sysmon_envsys 2010-12-11 18:18:09 +00:00
matt
62e486810b Add some PCI Express definitions, MSI, MSIX, etc. 2010-12-11 18:17:39 +00:00
matt
2242c3b6b9 Use device_private 2010-12-11 18:12:45 +00:00
matt
85cd343175 Match Marvell E1145 2010-12-11 18:10:42 +00:00
matt
67a6d6d4c5 Recognize AR8021 2010-12-11 18:10:16 +00:00
matt
d1f7edc5af Regen. 2010-12-11 18:09:33 +00:00
matt
09b2af815f Add two phys (Atheros 8021 and Marvell 88E1145) 2010-12-11 18:09:13 +00:00
matt
3becbb1c42 Make ehci deal with pci devices that have multiple companion functions and
ehci functions.  We can't assume that there will only be one ehci per device.
The existing code could not deal with:

Netmos MCS9990 Quad USB 2.0 Port (USB serial bus, interface 0x10) at pci1 dev 0 function 0 not configured
Netmos MCS9990 Quad USB 2.0 Port (USB serial bus, interface 0x20) at pci1 dev 0 function 1 not configured
Netmos MCS9990 Quad USB 2.0 Port (USB serial bus, interface 0x10) at pci1 dev 0 function 2 not configured
Netmos MCS9990 Quad USB 2.0 Port (USB serial bus, interface 0x20) at pci1 dev 0 function 3 not configured
Netmos MCS9990 Quad USB 2.0 Port (USB serial bus, interface 0x10) at pci1 dev 0 function 4 not configured
Netmos MCS9990 Quad USB 2.0 Port (USB serial bus, interface 0x20) at pci1 dev 0 function 5 not configured
Netmos MCS9990 Quad USB 2.0 Port (USB serial bus, interface 0x10) at pci1 dev 0 function 6 not configured
Netmos MCS9990 Quad USB 2.0 Port (USB serial bus, interface 0x20) at pci1 dev 0 function 7 not configured
2010-12-11 17:58:41 +00:00
matt
c25d92f48d Regen 2010-12-11 17:46:58 +00:00
matt
6a4b22310d Add some more devices that I've encountered. 2010-12-11 17:45:38 +00:00
pgoyette
73ddb4f5d6 Handle removal of limit properties correctly, even for sensors that
provide their own internal limit(s).
2010-12-11 15:17:15 +00:00
martin
6251718992 Sanitize names a bit, still could use more namespace cleanup 2010-12-11 14:28:38 +00:00
pgoyette
3670e11cda Fix a couple of name-space changes that fell through the cracks.
Hello, martin!
2010-12-11 14:19:29 +00:00
martin
2d30a8bf37 Namespace police: don't use very broad names like CTX_MASK (which accidently
collide with sparc* specific MD macros), mechanically prefix with BNX_.
2010-12-11 12:14:06 +00:00
pgoyette
cedd9a0b1c Enhance the swsensor(4) pseudo-device's capabilities to emulate more
sensor types
2010-12-11 04:13:03 +00:00
mrg
cad3665385 add a hack to fix up old labels that do not have zero's in numBlocksHi:
if the total sectors reported (via disklabel or otherwise) is smaller
than 2^32, but numBlocksHi is set, zero it out instead.

tested by myself and christos, should fix reports of weirdness seen.
2010-12-11 03:12:10 +00:00
phx
2022dcaf61 Initialize sc_iot early enough to avoid a crash when the hardware monitor
function was found disabled.
2010-12-10 21:20:09 +00:00
matt
e135fb83e2 When attaching a PCI bus, the pci chipset is not optional. 2010-12-10 00:38:49 +00:00
christos
b29510e02e PR/41415: IdOp: Implement save and restore palette for vga. 2010-12-09 23:33:30 +00:00
jym
8cad040aa0 Add support for BCM5709S (SerDes PHY) in brgphy(4).
From FreeBSD, via OpenBSD, with some minor adaptations.

No comments, no objections on tech-kern@.

The driver was tested on a Dell M710. Access was kindly provided by
Uwe Toenjes, whom I thank for this.

See also http://mail-index.netbsd.org/tech-kern/2010/12/01/msg009478.html
2010-12-09 23:25:49 +00:00
jym
19179df1ef Remove htolexx calls, as bnx(4) NICs are capable of swapping endianess.
The macros for PAGE_SIZE were fixed with the previous patch (if_bnxreg.h
splitting, rev 1.11).

From OpenBSD. Their commit log reads:

bnx(4) is a bit special. The chip itself is capable of swapping endianess
so there is no need for htoleXX calls. The only thing needed is the correct
layout of the DMA-ed structures. Additionally it uses PAGE_SIZE but assumed
that it is always 4k. Fix the macros that failed to respect that so that it
works on 8k PAGE_SIZE systems. This makes bnx(4) work on sparc64.
2010-12-09 23:14:06 +00:00
jym
92c8678b42 Similar to bge(4), split if_bnxreg.h in two parts:
- if_bnxreg.h: general register values, flags... for bnx(4), that can
be included in other drivers
- if_bnxvar.h: PCI or device specific code (device state data, debug
macros etc.), which should remain private to bnx(4)

No comments, no objections on current-users@.

See discussion:
http://mail-index.netbsd.org/current-users/2010/12/01/msg014926.html
2010-12-09 22:34:37 +00:00
uebayasi
a7e80793d8 Fix DEBUG build. 2010-12-09 04:31:57 +00:00
phx
b85712c4a1 regen 2010-12-08 21:02:12 +00:00
phx
b719aa55b0 Apple product 0x1000 is a Bluetooth HCI in HID-proxy mode, which was the
reason it appears as keyboard- and mouse-HID. Do not ignore it.
2010-12-08 20:59:58 +00:00
christos
157bda91a0 PR/44207: Wolfgang.Stukenbrock:
memory-leak in raid-ioctl(RAIDFRAME_GET_COMPONENT_LAB
2010-12-08 16:18:06 +00:00
pgoyette
9179849b5d When removing properties (as in envstat -S), clear the flags that track
whether the properties actually exist.

When setting new limit values, don't complain/ignore about duplicate
values if the associated flag bits (indicating that the limit is valid)
are not set.

These two fixes together should fix a problem reported in private Email
by njoly@ a couple months ago.  Issue replicated and solution tested
using my recent swsensor pseudo-device running inside qemu world!
2010-12-08 00:09:14 +00:00
pgoyette
0139c9e7c5 Make this compile when "options ENVSYS_OBJECTS_DEBUG" is defined. 2010-12-06 23:26:44 +00:00
christos
d200ee2cb8 change E2BIG -> EINVAL, clearly "argument list too long" is the wrong message
to print.
2010-12-06 16:22:57 +00:00
haad
08d72eb06c I have forgot to fix dm_dev_counter here, too. 2010-12-06 09:12:23 +00:00
haad
e52bc34bd3 We don't need 64 bit variable for dm_device coutner, too. 2010-12-06 09:03:40 +00:00
haad
50cad777f0 Add comment about dm_dev minor, and change it to 32bit value we realy not
going to use so much device minor numbers.
2010-12-06 08:54:49 +00:00
pooka
393c93bb1d Don't allow "goes to 11^H^Hhyperspace" len field for RNDADDATA. 2010-12-04 17:39:50 +00:00
mrg
1812d0a239 apply my patch to support non-512K sector disks (at least, upto 16KB
sector disks..)  from my tech-kern post:


the following patch let's me access both 512 byte and 4K
sector disks at the same time, as long as they are in
separate raids.  the existing rf code assumes/enforces
this part, i just made it support other sets concurrently.

the main change is moving the parity bitmap to the sector
after the component label sector(s), instead of being
immediately after the label, which meant it was on the same
sector as the label for >1024 byte devices.

i'm a little annoyed at having to add a 2nd call to
getdisksize() to enable auto-configure to work, but i
don't see another way that wasn't much uglier.
2010-12-04 10:01:16 +00:00
christos
6507d5b7f9 just ignore things that refer to the interface while detaching. 2010-12-02 17:38:05 +00:00
christos
dd73ef3bf4 Don't crash during detach if the attach hook failed before setting up.
From Chuck Silvers
2010-12-02 16:56:21 +00:00
bsh
dcf9e50cee don't clear TS_BUSY in ucomclose().
This fixes kernel crash in ucomstart() with "echo Hello > /dev/ttyU0".
2010-11-30 15:26:22 +00:00
phx
d506813131 Support for Apple notebook keyboards, which have a few quirks.
1. On ISO-keyboard the keycodes for the key left of '1' and right of Shift
   are swapped.
2. Find the Apple FN key in the report descriptor and do the translations
   needed, before passing the keycodes to wscons.
3. Those keyboards only have the left Alt key. AltGr is missing. So it is
   emulated when holding down FN together with Alt.
2010-11-30 11:35:30 +00:00
phx
34f9225067 regen 2010-11-30 11:28:44 +00:00
phx
1949db690b Added some Apple trackpad devices for use in usb_quirks.c and macppc/dev/pbms.c 2010-11-30 11:25:25 +00:00
jruoho
e1de74391b Add AMD C1E quirk. Tested by cegger@.
(a) This should be removed once C-states are supported.

  (b) As there seems to be no reliable way to detect whether C1E is present,
      the quirk blindly assumes that C1E is used on families 10h and 11h.
2010-11-30 04:31:00 +00:00
jym
eac44f9a19 Fix typo. 2010-11-29 23:04:42 +00:00
christos
1bb8c93e5d regen 2010-11-27 20:15:43 +00:00
christos
e5ce60b3e7 PR/44080: Grégoire Sutre: Support for the i82577 ethernet PHY 2010-11-27 20:15:27 +00:00
jym
b105d52289 regen. 2010-11-27 18:03:33 +00:00