Commit Graph

21102 Commits

Author SHA1 Message Date
christos
224c7c746b add missing initializer. 2006-09-03 21:03:11 +00:00
christos
c35f9741bc add missing initializer. 2006-09-03 21:00:01 +00:00
christos
4e0d743b9e add missing initializers 2006-09-03 20:59:18 +00:00
bouyer
2aee9a0f50 Back out rev 1.149.
From various discussion about vndstrategy (see
http://mail-index.netbsd.org/tech-kern/2005/03/29/0034.html
http://mail-index.netbsd.org/tech-kern/2005/03/23/0015.html)
it's not correct to tsleep() in a strategy routine, which may be called from
interrupt context.
Unfortunably this reopens PR/10731, PR/12189, PR/20296, PR/34293

As for what the correct fix it, this needs to be analysed deeper. I suspect
throttling the caller in vnd only hides the problem; the same caller writing
to some other device could exaust all buffers as well. If this driver doesn't
need to allocate buffer this won't cause a deadlock, but it's bad for
performances on systems with e.g. multiple drives. Also, others stacked
block device drivers may also have this issue.
2006-09-03 19:49:34 +00:00
bouyer
bedc649eed stop attaching when a bus_dma operation fails, instead of using bogus
addresses.
Remplace vtophys() with proper bus_dma(9) use.
This driver now works properly on Xen
2006-09-03 19:06:32 +00:00
martin
452f35b603 Regen 2006-09-03 18:30:54 +00:00
xtraeme
44522b1f90 * Add support for ICH8 and ICH8M SATA/RAID controllers.
* If the controller is in AHCI, ask for SATA IDE mode of operation.

jsg@openbsd says:

"X60/T60 Thinkpads are shipped in AHCI configuration by default,
 this makes them work without changing a BIOS option."

Tested by eye of the beholder. From OpenBSD.

Ok'ed tls.
2006-09-03 18:30:35 +00:00
martin
1b5905d05b Add RASQ3 variant of PL2303 serial 2006-09-03 18:30:23 +00:00
bjh21
dacb75acff All ports that use the file do so through files.pckbport, so there's no
need to be cautious about including "pckbd.h".  This has the side-effect
that ports using pckbd but not defining __HAVE_NWSCONS will now get pckbd
attached as console if they call pckbport_cnattach(), but I don't think
any such ports exist.
2006-09-03 13:23:15 +00:00
xtraeme
02fa0947d7 Add support for PDC40519 and PDC40779... from obsd. 2006-09-03 12:18:03 +00:00
xtraeme
4769f26cd2 regen 2006-09-03 12:14:32 +00:00
xtraeme
3a3373ee8e Add missing PDC20265 device... removed accidentally in previous. 2006-09-03 12:13:56 +00:00
xtraeme
5a91328568 regen 2006-09-03 12:02:53 +00:00
xtraeme
4e23c01c3f Add some missing devices from Promise and sort them. 2006-09-03 12:02:30 +00:00
xtraeme
f42bb991ca regen 2006-09-03 10:20:13 +00:00
xtraeme
af16e7909e Add some ICH8 devices... from obsd. 2006-09-03 10:19:26 +00:00
xtraeme
fdcb59bf6d Add support for nvidia MCP61/65 IDE/SATA Controllers. 2006-09-03 08:42:32 +00:00
xtraeme
bbdb91feca regen 2006-09-03 08:39:15 +00:00
xtraeme
316d722a4c Erm forgot to add MCP61/65 SATA Controllers and sort them. 2006-09-03 08:38:52 +00:00
xtraeme
7465ee1052 regen 2006-09-03 08:10:47 +00:00
xtraeme
4b06824243 - Add all pciids for nvidia MCP61/65 controllers, from obsd.
- Improve description in all them.
2006-09-03 08:10:18 +00:00
xtraeme
ea4f30c7b7 Add support for MCP61/65 controllers... from obsd. 2006-09-03 07:42:04 +00:00
xtraeme
3a6aed3622 regen 2006-09-03 07:36:34 +00:00
xtraeme
e85b72eeee - Add nForce MCP61/65 LAN controllers... from obsd.
- Improve description in some nForce controllers as well.
2006-09-03 07:36:10 +00:00
christos
92a6344549 add missing initializer 2006-09-03 07:14:47 +00:00
christos
08a78fe175 use c99 initializers 2006-09-03 07:13:46 +00:00
christos
6e6fde1336 add missing initializer 2006-09-03 07:07:20 +00:00
christos
db87199efc use c99 initializers 2006-09-03 07:06:39 +00:00
christos
80d7cf4588 - add missing initializer
- add missing function decl
2006-09-03 07:05:16 +00:00
christos
bbf2deb35f - add missing initializer
- inline comes first
2006-09-03 07:02:54 +00:00
christos
0c58aff5f5 add missing initializers 2006-09-03 06:46:22 +00:00
christos
328ed75351 add missing decl 2006-09-03 06:42:44 +00:00
christos
05bd5641dd add missing initializers 2006-09-03 06:41:38 +00:00
christos
48c3e87853 add missing initializer 2006-09-03 06:26:27 +00:00
christos
01edefa570 comment out unreachable code 2006-09-03 06:23:27 +00:00
christos
996634386c comment out unreachable code. 2006-09-03 06:22:05 +00:00
christos
4905e82e29 add missing initializer 2006-09-03 05:30:48 +00:00
christos
c11c8c78df add missing initializers 2006-09-03 05:29:46 +00:00
christos
b3d983dd18 add missing initializer 2006-09-03 05:24:47 +00:00
christos
5b7c1e90d5 add missing decl. 2006-09-03 05:23:59 +00:00
christos
4ac9cd5ebe add missing initializer 2006-09-03 05:20:21 +00:00
christos
7ed28205b6 - add missing initializer
- comment out impossible comparison
2006-09-03 05:19:38 +00:00
christos
144543fb61 add missing initializer 2006-09-03 05:18:03 +00:00
christos
60dfc6ed9c add missing initializers 2006-09-03 05:16:01 +00:00
christos
eb7cb3e07d - add missing initializers
- remove impossible comparison
2006-09-03 05:12:54 +00:00
christos
624d950194 add missing initializer 2006-09-03 05:11:30 +00:00
christos
26733bed2e - comment out impossible comparisons
- remove superfluous if statement
2006-09-03 05:10:24 +00:00
christos
7de21598de - add missing initializer
- correct function decl.
2006-09-03 05:04:57 +00:00
christos
93582079db add missing initializer 2006-09-03 05:02:21 +00:00
christos
309d51fb22 add missing initializers 2006-09-03 04:56:33 +00:00
christos
2ef37e3f61 use c99 initializers 2006-09-03 04:52:14 +00:00
christos
a96f0dc641 avoid empty if statements 2006-09-03 04:27:11 +00:00
christos
3cd45450e8 redo with c99 initializers 2006-09-02 18:59:46 +00:00
christos
bd4bd1bf9d - comment out impossible comparison
- add missing initializer
2006-09-02 18:58:02 +00:00
christos
5ec7f32544 add missing initializers 2006-09-02 17:02:57 +00:00
xtraeme
05670fe773 Remove unused variable to make this build again. 2006-09-02 09:26:47 +00:00
christos
b6994507c5 add missing initializer 2006-09-02 07:23:53 +00:00
christos
faec8658c7 - fix incomplete initializer
- static goes first
2006-09-02 07:10:51 +00:00
christos
0668b0a2e0 static goes first 2006-09-02 07:08:39 +00:00
christos
7d1781d944 - fix incomplete initializer
- static goes first
2006-09-02 07:07:33 +00:00
christos
b5da945622 comment out unreachable code 2006-09-02 07:06:03 +00:00
christos
a91b63349c add missing initializer 2006-09-02 07:04:46 +00:00
christos
a569a4d291 add missing initializer 2006-09-02 07:01:20 +00:00
christos
9f681d6f65 comment out impossible code 2006-09-02 07:00:23 +00:00
christos
489fe1e988 add missing initializers 2006-09-02 06:56:30 +00:00
christos
b819e0b190 Add missing initializer 2006-09-02 06:54:18 +00:00
uwe
ff25c8d7b7 s/dreamcast/sh3/ to cover landisk. 2006-09-01 20:28:14 +00:00
matt
49b2425f19 Use an unsigned int for the blksize on read_cd_capacity. 2006-09-01 03:29:32 +00:00
dyoung
013444d78c Remove the declaration of an unused local variable 'reg'. 2006-09-01 03:24:58 +00:00
reinoud
0b228f5987 Fix panic on reading/writing to a (raw) CD device and encountering an
error. It now correctly sets bp->b_resid to the full size of the buffer.
The failed SCSI read/write command allways contains the complete buffer.

When encountering a read (or write) error, the scsipi stack sets the
xs->resid to zero since the command has been accepted by the drive. The
scsi command set does not allow a partial read or write to be performed and
will signal a success or an error.
2006-08-31 21:32:42 +00:00
reinoud
e3b1c755c2 Remove two spurious empty lines in functions 2006-08-31 20:22:34 +00:00
reinoud
055cdf5d13 Fix fencing bug on CD disk size; the comment was wrong, its the *length* of
the device and since we count from zero its equal to the number of sectors
and thus one higher than the last sector.

This fixes the read/write problems on the (raw) device where the last
sector was not readable/writable.
2006-08-31 19:46:54 +00:00
dyoung
8cd106d3d2 Per discussion on tech-kern and tech-userlevel, move the bit-twiddling
macros, __BIT, __BITS, SHIFTIN, SHIFTOUT, and __arraycount() from
lib/libkern/libkern.h to sys/cdefs.h.  Add a __-prefix to SHIFTIN
and SHIFTOUT, and add a manual page for the bit-twiddling macros,
bits(3).

Make the __BIT and __BITS macros "widthless," as best I can, by
changing their type to uintmax_t from uint32_t.  XXX The manual
page lags this change by a bit.

Define __PRIxBIT and __PRIxBITS printf(3) format strings.
2006-08-31 19:24:37 +00:00
matt
3d36667ef9 Appease GCC4 by making /* NOTREACHED */ code return 0. 2006-08-31 18:31:59 +00:00
rumble
cc8a477ce5 Add quirks for the Phobos GIO Fast Ethernet boards. 2006-08-30 23:32:07 +00:00
rumble
e980865174 Phobos boards (my G130 at least) have a non-standard srom layout. Try to
identify it and pull out the enaddr.
2006-08-30 23:31:08 +00:00
rumble
75e28cc7ed Make this compile again when TLDEBUG is defined. 2006-08-30 23:29:01 +00:00
plunky
999bb1e465 It seems that EHCI at least will complete a empty transfer with
status == NORMAL_COMPLETION.

Guard against that.
2006-08-30 19:42:37 +00:00
christos
738af19b41 fix initializers. 2006-08-30 19:25:46 +00:00
christos
a2b752877c fix incomplete initializer. 2006-08-30 19:16:03 +00:00
christos
e6aa223b06 - fix initializers
- comment out dead code.
2006-08-30 17:07:33 +00:00
christos
514b3fccd7 fix initializer 2006-08-30 17:00:15 +00:00
christos
9d7a9c4079 fix initializers 2006-08-30 16:59:34 +00:00
christos
ce149b700c fix initializers. 2006-08-30 16:55:06 +00:00
christos
bf74b6c774 add missing initializers 2006-08-30 16:51:24 +00:00
christos
048533a23b complete initializers. 2006-08-30 16:49:07 +00:00
christos
989f6e4d42 avoid empty if body. 2006-08-30 16:45:40 +00:00
christos
26f4467d26 fix initializers. 2006-08-30 16:43:56 +00:00
christos
a7239032fa Fix initializer 2006-08-30 16:42:04 +00:00
christos
e9198d13b8 fix initializer. 2006-08-30 16:38:23 +00:00
christos
46d616fab0 fix incomplete initializers. 2006-08-30 15:46:58 +00:00
christos
13714b86fb comment out impossible comparison. 2006-08-30 15:27:18 +00:00
christos
f5d9b98eb1 add missing initializer 2006-08-30 15:25:58 +00:00
christos
c1d5ec6516 add missing initializers. 2006-08-30 15:14:11 +00:00
christos
5bfce2e9a7 fix incomplete initializers 2006-08-30 02:15:33 +00:00
christos
ca858a7e11 static goes first 2006-08-30 02:13:20 +00:00
christos
ee0887af27 fix missing initializer 2006-08-30 02:11:42 +00:00
christos
afca61baba add missing initializers 2006-08-30 02:09:40 +00:00
christos
366af49b8e - fix missing initializations
- remove stray semicolon, that screwed up error checking
2006-08-30 02:08:20 +00:00
christos
2e252670b5 static goes first 2006-08-30 02:00:26 +00:00
christos
1158495345 fix order of decl 2006-08-30 01:59:06 +00:00
christos
37fbc95466 add missing initializer 2006-08-30 01:27:56 +00:00
christos
0340a0cbcd fix incomplete initializer 2006-08-30 01:24:40 +00:00
christos
d76c7ff74a - fix missing initializer
- fix < 0 comparison with unsigned
2006-08-30 01:14:24 +00:00
christos
b80f5be1eb fix incomplete initializers 2006-08-30 01:10:46 +00:00
christos
f202705964 fix incomplete initializer 2006-08-30 01:09:39 +00:00
christos
f432f36f7f missing comma 2006-08-30 00:54:28 +00:00
christos
a87d6a05e0 fix incomplete initializers 2006-08-30 00:53:47 +00:00
christos
976d4b3f1c - fix incomplete initializer
- remove unsigned comparison < 0
2006-08-30 00:51:48 +00:00
christos
16f3fda8be fix incomplete initializers 2006-08-30 00:42:41 +00:00
christos
2ddf5cde1a fix incomplete initializers. 2006-08-30 00:41:46 +00:00
christos
15a77ddab7 fix incomplete initializer 2006-08-30 00:40:56 +00:00
christos
cb09e23ee7 fix incomplete initializer 2006-08-29 23:45:23 +00:00
christos
c65db33038 fix incomplete initializer. 2006-08-29 23:42:18 +00:00
christos
f649f50b35 fix incomplete initializer 2006-08-29 23:41:12 +00:00
bjh21
8009229e9b The Fujitsu drive in my A540 supports sync transfers but apparently
doesn't advertise this in INQUIRY.  It makes it nice and obvious with
SDTR, though, so add it to the list.
2006-08-29 20:40:23 +00:00
macallan
eda93ea91b those should have been committed along with radeonfb.c
doh
2006-08-29 17:09:33 +00:00
macallan
10bb91db88 - use RADEON_DEFAULT_MODE when no EDID data available
- let only root mmap PCI resources through wscons
- allow IO access on macppc
2006-08-29 00:50:29 +00:00
christos
f7747a2a56 fix incomplete struct decl. 2006-08-28 21:37:37 +00:00
christos
a0917ad69e fix incomplete initializers 2006-08-28 21:33:16 +00:00
he
4c2420029f Add duplicate include protection to <dev/sun/kbio.h>.
Make the x68k port use this include file, so that what remains
is only the port-specific additions.
2006-08-28 17:15:24 +00:00
he
4493c76313 Use the common <dev/sun/vuid_event.h> header file instead of maintaining
separate copies in port-specific directories.  Add duplicate include
protection.  Makes the alpha and atari ports build usr.bin/kdump/ again.
2006-08-28 16:41:04 +00:00
xtraeme
6c90d7030b Remove unused variable 'periph' to make this build. 2006-08-28 11:45:38 +00:00
plunky
f2c2a49a27 Make suspend/resume work properly for bt3c device.
Since state is kept inside the device that will be lost, we need to
flush all information relating to this controller from the protocol
stack.
2006-08-28 10:34:33 +00:00
christos
df7450f605 Fix uninitialized variables. 2006-08-28 02:58:16 +00:00
christos
4e4ed26fac add missing initializer 2006-08-28 00:38:47 +00:00
christos
6ab0a579ce Add missing initializer. 2006-08-28 00:22:15 +00:00
christos
87fd29be14 static goes first. 2006-08-28 00:18:30 +00:00
christos
f7db588ec4 add missing initializer. 2006-08-28 00:14:50 +00:00
christos
d3b80ef998 remove impossible conditional 2006-08-28 00:10:20 +00:00
christos
6e913df162 remove unreachable code. 2006-08-28 00:08:38 +00:00
christos
a19f83e53b add missing initializer. 2006-08-28 00:07:35 +00:00
christos
63f68a892b remove unreachable code. 2006-08-28 00:06:14 +00:00
christos
78cdbd8e9c add missing initializer. 2006-08-28 00:04:21 +00:00
christos
7546f55be3 add missing initializer 2006-08-28 00:01:36 +00:00
christos
2735c71895 static comes first. 2006-08-28 00:00:23 +00:00
christos
a98a1f3b7b Add missing initializers. 2006-08-27 23:59:40 +00:00
christos
ff62f5c658 add missing initializers. 2006-08-27 23:54:50 +00:00
christos
d137310d6b add missing initializer 2006-08-27 23:53:10 +00:00
christos
ca960afcce Oops, this is not ready yet. 2006-08-27 23:51:31 +00:00
christos
72c8baf57c Add missing initializer 2006-08-27 23:50:53 +00:00
christos
cdda2124d1 Fix incomplete declaration. 2006-08-27 23:33:35 +00:00
christos
4a778ebf9a - static needs to be first
- complete the cdevsw
2006-08-27 23:31:15 +00:00
christos
c689e59cb9 restructure ifdefs 2006-08-27 23:27:44 +00:00
christos
1624b1a623 typo 2006-08-27 23:23:48 +00:00
christos
d22d88fc75 ifdef out unreachable code. 2006-08-27 23:23:02 +00:00
christos
35f0d726a8 complete initialization 2006-08-27 23:21:35 +00:00
christos
925d11f2f5 complete declarations 2006-08-27 23:19:03 +00:00
christos
ec7d898cf1 Complete the declaration. 2006-08-27 23:13:47 +00:00
christos
7e11d29fc2 Delete unsigned comparison with < 0 2006-08-27 22:33:49 +00:00
bjh21
b42a1dca38 Revert revision 1.4: it seems to have caused serious problems on sgimips,
so I should probably leave it until I get my Indy going.
2006-08-27 22:32:54 +00:00
christos
d5ca3efd41 undo previous. Andy says the struct is used in pkgsrc. 2006-08-27 21:39:39 +00:00
christos
1b3d66a467 Sprinkle _KERNEL. 2006-08-27 20:32:44 +00:00
christos
9db6f7d836 #ifdef out unused ioctl (and wrong) 2006-08-27 20:26:34 +00:00
christos
9c90e26bcf Fix typo 2006-08-27 20:11:31 +00:00
christos
52975efd5a Grr. Don't define _KERNEL! Most of the kernel files do #ifdef _KERNEL 2006-08-27 19:19:47 +00:00
christos
06869f0ad3 don't call variables errno! including from userland breaks things! 2006-08-27 19:18:08 +00:00
christos
b34c6cdc81 PR/34293: Michael van Elst: vnd deadlocks on I/O buffers
Also fixes: PR/10731, PR/12189, PR/20296
Sleep while there a buffer shortage.
2006-08-27 18:45:20 +00:00
xtraeme
f61564f6ba Initialize a variable to 0 to appease gcc4 with -O3. 2006-08-27 17:05:39 +00:00
bjh21
f379f539d2 Use symbolic names for CSR values after reset. 2006-08-27 13:13:36 +00:00
plunky
c980b109dd BluetootH SCO Audio update.
Provide an ioctl to set the SCO mtu value in the controller and
place limits in the SCO code such that only packets of this size
may be sent.

Move the mtu option from btsco(4) and btdevctl(8), to the
btconfig(8) program.

Remove temporary BLUETOOTH_SCO kernel option, and enable SCO
socket access.

Fix incoming connection handling for btsco(4) and SCO sockets.

Fix documentation to reflect the new world order.
2006-08-27 11:41:58 +00:00
bjh21
5616d106f8 acorn26 hasn't had sbic since before it became acorn26. 2006-08-27 10:14:20 +00:00
christos
52c2319234 Regen 2006-08-27 08:16:44 +00:00
christos
8270ea8a29 PR/34289: Stéphane Witzmann: Add some missing PCI devices in pcidevs 2006-08-27 08:16:16 +00:00
christos
ecdff16f80 - use dk_lookup instead of our home-spun version.
- allow raid to be configured in a wedge
- allow wedges to be configured in a raid
- add autoconfiguration of wedges in a raid
2006-08-27 05:07:12 +00:00
christos
b7a6606cb6 Add horrible hack for wedges. Why is the block device of the wedges in use? 2006-08-27 05:00:00 +00:00
christos
1a789da3ec Use dk_lookup. 2006-08-27 04:58:40 +00:00
bjh21
eb74489b57 When receiving a SCSI message, it's important not to deassert ACK on the last
byte until we've worked out what to do with the message, since if we plan
to reply to it we have to assert ATN before deasserting ACK.  Implement this.
2006-08-26 23:55:22 +00:00
bjh21
286856d098 QAS REQUEST is a one-byte message. Make MSG_IS1BYTE recognise this. 2006-08-26 23:32:55 +00:00
bjh21
604c7b6558 Use standard MSG_IS1BYTE, MSG_IS2BYTE, and MSG_ISEXTENDED macros rather
than rolling our own.
2006-08-26 22:37:07 +00:00
bjh21
c981542cbe Use the 'z' size modifier when printfing size_t, so that GCC doesn't complain
on systems were size_t isn't unsigned int.
2006-08-26 22:33:18 +00:00
bjh21
2cd3c4f0e6 Move the sgimips "sbic" driver from arch/sgimips/hpc/sbic.c to
dev/ic/wd33c93.c.  This may not be the best WD33C93 driver we've
got, but it's the most recently worked on and probably the most
portable, so it seems like a good basis for further work (and in
particular an acorn26 driver for the Acorn SCSI card).  There's
no functional change in this commit, and sgimips kernels still
compile.
2006-08-26 22:06:36 +00:00
christos
dace278549 PR/34292: Aaron Hodgen: twa driver incorrectly reports drive size/description 2006-08-26 19:35:51 +00:00
riz
df667bafa9 In sk_watchdog(), attempt to reclaim pending TX descriptors before
resetting the hardware.  Should fix occasional watchdog timeouts
seen with this driver.

From FreeBSD, via OpenBSD.
2006-08-25 20:16:57 +00:00
riz
62cb42312d Cleanup, with no functional changes:
- remove unused code
	- KNF
	- ANSI function declarations
	- replace printf() with aprint_error() except in debug functions
	- a few minor indentation/whitespace changes
2006-08-25 02:34:30 +00:00
riz
0284fe298f Regen (Marvell product IDs) 2006-08-24 22:40:59 +00:00
riz
4a163d3c68 Add a bunch of Marvell product IDs, from OpenBSD. 2006-08-24 22:40:20 +00:00
dbj
f7434c5451 avoid diagnostic panic if both blk and chr wedge are open at the same time 2006-08-24 21:57:11 +00:00
bjh21
b223d41e99 gettime and settime functions are meant to return errno values. Make
the pcf8583 ones do so.
2006-08-23 21:21:34 +00:00
christos
f73c6e5980 Change iostat_alloc() to take the parent pointer and the name directly, so
that callers are not responsible for initializing the fields. Store the name
inside the struct instead of maintaining a pointer to external storage, or
leaked memory (nfs case).
2006-08-23 17:19:32 +00:00
christos
f0f1731b24 Acting as Elad's keyboard:
Place the securelevel checks in their logical locations.
This will be clearer in the future when code changes to use kauth(9) calls.

input and okay ad@
2006-08-23 15:44:29 +00:00
cube
7db2b0d746 Regen (Broadcom NetXtreme II). 2006-08-23 13:55:48 +00:00
cube
7de2074ec7 Add Broadcom NetXtreme II devices. 2006-08-23 13:54:37 +00:00
kent
dab6bf2001 implement auto-detection of volume resolutions 2006-08-23 11:24:07 +00:00
riz
a9815feffa Vendor GALILEO is now MARVELL. 2006-08-22 21:42:19 +00:00
riz
ec9d914ee6 Regen for GALILEO -> MARVELL 2006-08-22 21:41:12 +00:00
riz
3f9d78d294 Rename vendor GALILEO -> vendor MARVELL . Marvell bought Galileo years
ago, we have little existing stuff in the tree, and this will make it
easier to keep certain network drivers in sync with other OSes.

OK matt@, uwe@
2006-08-22 21:40:17 +00:00
riz
2314dce488 Add byteswapping where appropriate, to allow things to work on
(at least some) bigendian systems - I tested on macppc.

From brad@openbsd .
2006-08-22 06:24:10 +00:00
uwe
b320dcd170 Fix a pasto: save CONFIG_HOOK_PMEVENT_AC hook in the correct variable.
From Adam Wysocki on port-hpcsh@.
2006-08-22 01:55:00 +00:00
riz
a06f7205fb Some cleanup in skc_attach():
- does not need splnet()
	- disestablish the interrupt and unmap bus space on failures.
2006-08-20 18:04:53 +00:00
riz
c250a823e7 Make this driver compile when SK_USEIOSPACE is defined - I have no
evidence that this is actually needed except for the existence of the
code itself, but if it's going to be here, it should compile.  Tested
briefly on my ASUS motherboard with built-in sk interface.
2006-08-20 16:03:30 +00:00
christos
9d18036adc PR/34241: Dave Sainty: Bound a memcpy to the sizeof the buffer where we
are trying to save the contents, instead of trying to copy what the lenght
of the acpi resource tells us.
2006-08-20 15:10:59 +00:00
plunky
066074b94f Make btdev default count explicit 2006-08-20 07:06:57 +00:00
macallan
1ab7fe6df2 fix a typo so we actually write sane values into the clipping registers 2006-08-19 17:57:13 +00:00
plunky
95d2b886d7 The ubtbcmfw(4) driver fails to compile, as noted by PR kern/34219.
While it can be made to compile, the paradigm is not quite right because
it attempts to contact the filesystem during autoconfig which sometimes
causes a panic. Even if that was fixed, there is another potential problem
in that the driver tries/sleeps/tries/sleeps and the sleep could
theoretically sleep past the rc.d/btconfig stage and the controller
would remain unconfigured.

So, I have prepared a different method for loading the firmware to
Broadcom BCM2033 chip based devices. A package 'sysutils/bcmfw' will load
the firmware files via a ugen(4) device interface.

This update removes the ubtbcmfw(4) driver and adds a table to the ubt(4)
driver so that it will not attach to Broadcom BCM2033 based devices before
the firmware was loaded.

This fixes kern/34219
2006-08-19 16:35:02 +00:00
skrll
326bcc171a Add some sysctl knobs to bring us closer to the FreeBSD driver.
Also sysctl enable the debug message printing (if IWI_DEBUG) is defined.
2006-08-19 06:32:52 +00:00
macallan
ea7df82ebc fix some typos, add mmap() support for X
needs options RADEONFB_MMAP_BARS for now
2006-08-19 04:39:32 +00:00
macallan
f5804719cd make this work on macppc.
fixes and caveats:
- will switch to 32bit colour, 8bit support needs some more work
- added support for fonts with widths that aren't multiples of 8
- for now the driver will always try to become system console
- mode switching works but is ugly
- all the acceleration bits work
- X should work with wsfb, mmap() needs some more work
- it still needs a hack to allow wsdisplay_cnattach to be called twice
2006-08-19 04:00:15 +00:00
uwe
dee7f461a0 G/c unnecessary includes. 2006-08-18 02:42:38 +00:00
bjh21
279e0fb4d4 There seems to be no good reason for sfbp(4) to be commented out here, and its
state is breaking alpha builds.  I'll uncomment it and see what breaks.
2006-08-17 22:19:13 +00:00
he
f4ad138e01 Make this build again without OBOE_DEBUG defined (get rid of warnings
about unused variables).
2006-08-17 22:14:38 +00:00
christos
35ca6c8b5b Fix all the -D*DEBUG* code that it was rotting away and did not even compile.
Mostly from Arnaud Lacombe, many thanks!
2006-08-17 17:11:27 +00:00
gdamore
0d7e99a27a Initial import of radeonfb. Works to some degree on at least some hardware.
Most of the testing was done on MIPS hardware -- it probably needs work before
it will be useful with x86 hardware, and it is probably incompatible with
the X11 server.

"ATI Technologies Inc. ("ATI") has not assisted in the creation of, and
does not endorse, this software.  ATI will not be responsible or liable
for any actual or alleged damage or loss caused by or in connection with
the use of or reliance on this software."

Enjoy!
2006-08-16 22:46:44 +00:00
gdamore
f943f04933 2nd try. Fix errors (hopefully) that prevented this from compiling. This
has not been tested, as I lack the tools necessary to build this (and can't
bootstrap pmppc toolchain for some reason.)

Requested by garbled@
2006-08-16 21:28:36 +00:00
bjh21
c189c05750 Remove various devices that acorn32 no longer has. 2006-08-14 22:05:45 +00:00
itohy
cdb1835aff ACPI frontend for Yamaha OPL3-SA[23].
Derived from PR kern/33991 by jasper at pointless dot net.
2006-08-14 09:34:43 +00:00
jmcneill
e0a36ed3ff Reclaim resources from an initial vga console on attach. 2006-08-13 20:27:33 +00:00
jmcneill
28ff3283af Acceleration definitions (missed in previous commit). 2006-08-13 20:26:55 +00:00
jmcneill
5effc9a4f9 Expose RGB palette tables. 2006-08-13 20:25:47 +00:00
jmcneill
d7fd667c03 Provide a method for other display drivers to ask vga to free resources
it had claimed while acting as the initial console device. This allows
(for example) vga to be the initial console, and an accelerated
framebuffer driver to take over later.
2006-08-13 20:24:51 +00:00
martin
b28babedf4 Backout previous - it is already dealt with at the config level. 2006-08-13 19:17:11 +00:00
martin
4ada5572ad Make the discovery methods optional (as they were already declared
in conf/files)
2006-08-13 18:45:08 +00:00
jmcneill
ef21ee74e6 Add accelerated putchar and cursor ops. Also fix a bug in copyrows that
caused scrolling down to always fail.
2006-08-13 14:16:44 +00:00
plunky
6232d01b2d Remove obsolete file from repository 2006-08-13 13:59:45 +00:00
dsainty
07955f97ca Add support for the Promise PDC20771, present on the Promise FastTrak TX2300.
This support is not based on a datasheet, because a datasheet is not readily
available for this chip.  However, Promise have partially open sourced their
driver for Linux, and all suggestions are that the PDC20771 is pretty similar
to other recent SATA chips.

The TX2300 has two ports, but there is unoccupied space on the board for a
third PATA port.  It isn't entirely obvious how many channels the PDC20771 can
support.

The pdc205xx_drv_probe probe is necessary to avoid probing two wd* devices for
every physical device.
2006-08-13 09:39:25 +00:00
dsainty
cff0bb36bb Regen: Add the Promise PDC20771, present on the Promise FastTrak TX2300 2006-08-13 08:02:07 +00:00
dsainty
1a778d636e Add the Promise PDC20771, present on the Promise FastTrak TX2300 2006-08-13 08:00:14 +00:00
oster
505c134201 Apply a change from damien in OpenBSD: fix a use-after-free (read)
of a mbuf in wpi_tx_intr().
2006-08-13 03:52:33 +00:00
jmcneill
7c8d725f94 Add acceleration support for the VIA UniChrome driver. While here, fix a
bug that caused the screen to be filled with annoying vertical lines.
2006-08-13 03:37:02 +00:00
jmcneill
bdbf1a3323 Add rasops16 attribute to unichromefb. 2006-08-13 03:34:11 +00:00
simonb
af29995e74 Add a port of the OpenBSD Intel 3945ABG wpi(4) wireless driver, by
Jean-Baptiste Campesato.

From PR kern/33778.
2006-08-13 02:21:45 +00:00
nakayama
8f342cb589 Avoid gcc4 warnings; voice is unsigned so no need to check "voice < 0". 2006-08-12 00:34:39 +00:00
reinoud
12283b1fe9 Fix incorrect `loast possible lba' reporting, remove some empty lines and
add mmc classification for some still rare HD DVD device types.
2006-08-10 14:45:51 +00:00
simonb
4abae2e82a Regen. 2006-08-10 13:22:54 +00:00
simonb
3ec8720588 Fix typo in 3945 Intel wireless card name.
Pointed out in private mail by Jean-Baptiste Campesato.
2006-08-10 13:22:12 +00:00
cube
9979ca290b iwi now needs firmload [hi nick!] 2006-08-10 12:22:25 +00:00
skrll
7274555f30 s/printf/aprint_error/ for one message. 2006-08-09 11:49:41 +00:00
skrll
6458f6d488 Adapt iwi(4) to use firmload(9) and remove firmware loading from
iwictl(8).
2006-08-09 11:35:59 +00:00
jnemeth
d80f12f934 regen for Token Ring additions 2006-08-09 05:51:01 +00:00
jnemeth
83d05c6102 add some Token Ring devices 2006-08-09 05:47:08 +00:00
cube
d45fad2e7e Add support for the 631xESB/632xESB. 2006-08-08 19:38:34 +00:00
cube
8a1f50f6c7 Regen (Intel 63xxESB devices). 2006-08-08 19:37:35 +00:00
cube
46e1877148 Add device IDs for Intel's 631xESB/632xESB southbridges, and start the list
for the 5000X northbridge.  I'll add the rest later, the spec is currently
unavailable so I'll collect them from another source.
2006-08-08 19:37:00 +00:00
mrg
daf321dbca fix a GCC uninitialised variable warning only seen at -O3. 2006-08-08 10:32:09 +00:00
oster
803c52c2a4 sc_size should be a 64-bit quantity. Notice by Matthias Drochner. 2006-08-07 20:02:22 +00:00
oster
ff30fd25f5 Fix a minor typo in a comment. 2006-08-07 17:08:18 +00:00
mhitch
1d4e083680 gcc4 uninitialized variable. gcc3 apparently didn't catch this one. 2006-08-07 01:31:36 +00:00
jmcneill
4b802ec0e1 PR/12843: Workaround for CS4280 on IBM ThinkPads. From Stephane Witzmann.
Note: This workaround conflicts with piixpm(4); you will need to disable
the piixpm driver if you need this fix.
2006-08-06 16:21:11 +00:00
jmcneill
0eb9f3fd24 Regen. 2006-08-06 15:48:34 +00:00
jmcneill
5672a65632 Add entry for IBM ThinkPad audio. From Stephane Witzmann. 2006-08-06 15:48:12 +00:00
christos
dfb16d34c3 PR/34117: Takuya SHIOZAKI: enhancement for acpiapm(4)
- make sleep state corresponding to standby/suspend changeable by using sysctl,
- make sure to generate APM events appropriately.
- arrange the code for getting power status.
2006-08-06 15:47:51 +00:00
christos
0fe2e6efc3 PR/34116: Takuya SHIOZAKI: acpiapm(4) misuses config(9)
acpiapm(4) always matches the first node of AML, which is unrelated
with acpiapm. Separate acpi(4)'s children into two individual interface
attributes.
2006-08-06 15:46:54 +00:00
xtraeme
07e7c5a439 HPT368 support. Patch from Jonathan A. Kollasch via PR kern/34097.
Thanks.
2006-08-05 22:31:13 +00:00
sanjayl
265929b20e 1st cut of Powermac G5 support (uses bridge mode). 2006-08-05 21:26:48 +00:00
bsh
f3f5bb0be8 regen 2006-08-03 03:06:32 +00:00
bsh
065a50f8cf Device 10de:026c is not AC-97 controller but nForce430 HD Audio controller.
Pointed out by Brad.  Thanks.
2006-08-03 03:01:39 +00:00
rpaulo
d9e2b32d75 Don't read the firmware twice. Noticed by Nick. 2006-08-02 13:58:39 +00:00
jmcneill
7c1d2c6776 Forgot to commit this last night -- add the unichromefb(4) driver. 2006-08-02 11:26:16 +00:00
jmcneill
051b75db82 Add work-in-progress framebuffer console driver for the VIA UniChrome
integrated graphics family.
2006-08-02 01:44:09 +00:00
xtraeme
08e3be34b6 Match nForce3 250 SATA2. 2006-08-01 20:38:50 +00:00