Commit Graph

14916 Commits

Author SHA1 Message Date
thorpej
b7394dfe47 Adapt to the sysmon_pswitch interface. 2003-04-17 01:34:14 +00:00
thorpej
ea45f2ccc1 Oops, remove a debugging define. 2003-04-17 01:26:41 +00:00
thorpej
59ea64b6f0 * Don't do the ACPI_PCI_FIXUP unless it is explicitly enabled in
the kernel config file.  That code makes a total mess of any
  system with multiple PCI busses.
* Rework the way buttons are handled; register them with sysmon,
  and let it take the appropriate action.  This lets us gracefully
  shut down when the power button is pressed.
2003-04-17 01:22:21 +00:00
thorpej
b0f79c65ce Start at a power management framework for sysmon. Right now we just
provide some VERY basic support for power/sleep buttons and lid switches;
if someone presses the power button, shut down the system semi-gracefully.

Eventually, we will send events for all types of button/lid events down
to a userland power management daemon, which will be able to define a
separate policy for each button/switch.
2003-04-17 01:02:21 +00:00
petrov
62ba316156 rasops32_putchar: don't paint character out of font limits. 2003-04-16 23:28:41 +00:00
thorpej
6f2e904450 Use the standard fixed-sized types on NetBSD. 2003-04-16 23:24:01 +00:00
thorpej
6c29c1f6fb In the polling case, don't call mpt_timeout() twice. 2003-04-16 23:17:30 +00:00
thorpej
98f531d377 mpt_dma_mem_alloc(): If we fail, only destroy request DMA maps that
were actually created.
2003-04-16 23:16:41 +00:00
thorpej
81a8dadfcf Correctly sync the MPT request buffers, and remove BUS_DMA_COHERENT
from the mapping of those buffers.
2003-04-16 23:02:14 +00:00
thorpej
7e4fd7b547 Device driver for the LSI Logic Fusion-MPT based SCSI and Fibre Channel
adapters.  Currently supports:

* LSI 53c1030 Ultra320 SCSI
* LSI FC909, FC909A, FC919, and FC929 Fibre Channel

Ported from the FreeBSD "mpt" driver, written by Greg Ansley.  Thanks
to Frank van der Linden for testing and some bug finding.

This work was sponsored by Wasabi Systems, Inc.
2003-04-16 22:02:59 +00:00
nathanw
c4921eb479 Remove extra right paren. 2003-04-16 21:08:06 +00:00
thorpej
ce68b169df * Change the APIs that handle the sync period to work with 100ths of ns,
rather than 10ths of ns.  This is necessary in order to represent
  Ultra320 SCSI.
* Add Ultra320 SCSI to the scsipi_syncparams[] table.

We're not going to bother bumping any version numbers with this change; only
the "hba" driver uses scsipi_sync_period_to_factor(), and the uses of
scsipi_sync_factor_to_period() are all internal to the scsipi code.  Most
things just pass the factor around, which is unchanged by this.

Reviewed by Frank van der Linden.
2003-04-16 20:25:59 +00:00
petrov
7d83b6157f Comment out debug printf. 2003-04-16 18:53:50 +00:00
darrenr
0b2e3c6317 add missing setting of b_error (thanks Manuel) 2003-04-16 00:07:17 +00:00
augustss
44a844916d Regen. 2003-04-15 23:15:47 +00:00
augustss
155de892db Another VIA device. 2003-04-15 23:15:23 +00:00
augustss
b855d8716e Add another VIA CPU-AGP bridge. 2003-04-15 23:13:50 +00:00
tron
78a6a01cac Pullup short mbuf in wm_tx_cksum() instead of dropping it which fixes
PR kern/21190 by myself. Jason R. Thorpe code reviewed the changes.
2003-04-15 22:52:40 +00:00
rjs
c0cc8d30c1 Regen. 2003-04-15 21:43:56 +00:00
rjs
dd9495f867 Add ID for ITE IT8152 companion chip. 2003-04-15 21:32:28 +00:00
thorpej
b2beaa1fbd wm_tx_cksum(): Set the initial offset correctly for packets using
802.1Q encap.
2003-04-15 21:12:24 +00:00
nathanw
ad743e234b Add a missing paren. 2003-04-15 19:14:58 +00:00
darrenr
8dac8843a5 Implement (and document!) "dkctl <dev> badsector .." to `manage' the bad
sector information in the kernel.  Doing this uncovered some shortcomings
that should have been pretty obvious with the code committed prior, addressing
the major kludge with a new struct - disk_bacsecinfo to be passed into
DIOCBSLIST.
2003-04-15 18:27:26 +00:00
dogcow
277607fced fix typos 2003-04-15 17:42:44 +00:00
darrenr
f4965045a0 Automatically build up a list of bad sectors from failed read operations and
prempt read operations on matching regions with a failure rather than waiting
for the device to return a failure.  The I/O operation must have already failed
MAXRETRIES times before being added to the list - this can generally take up
to 12 seconds.
List is made accessible to userspace via DIOCBSLIST and DIOCBSFLUSH.
2003-04-15 14:11:00 +00:00
perry
5f549c5ea8 Add a quirk for the Tandberg SLR/5
Fix supplied by Rex McMaster in PR kern/13603
2003-04-14 16:18:23 +00:00
oster
351bc1e187 Remember to close the component if we decide it's not suitable for use
as a hot spare.  Closes PR#20989 by David Brownlee.
2003-04-13 22:07:11 +00:00
augustss
44617bfaa7 Add quirk for Genesys Logic GL641USB. From PR kern/21131. 2003-04-13 20:54:31 +00:00
explorer
a09cd2fd46 typo, s/TX4/TX2/ 2003-04-13 01:53:00 +00:00
explorer
38fd615cff add an older pci id for SATA150TX2PLUS, too 2003-04-12 10:41:04 +00:00
christos
4a09954028 PR/9286: Steven Grunza: Win98 warm boot puts 3c905B in state D3 and causes
ex driver failure
2003-04-12 09:03:25 +00:00
christos
611ca7be61 regen 2003-04-12 08:41:20 +00:00
christos
f45b1c425d PR/8754: Andreas Wrede: Add SIIG devices 2003-04-12 08:40:48 +00:00
christos
2d2910a91a PR/21108: Christopher SEKIYA: if_wi_pci.c rev 1.21 is incorrect for PLX-9052 2003-04-12 08:17:45 +00:00
tsutsui
8d11ba186d Add some delays between 8bit reads of DSTAT and SSTAT0 registers
as per the 53c710 manual. Pointed out by fredette in osiop_gsc.c long ago.
2003-04-12 06:42:38 +00:00
tsutsui
49c64e1d70 Fixes from OpenBSD:
- Fix index bounds checking in save data pointers logic.
- Fix an indent problem and an extra blank space.
2003-04-12 06:11:15 +00:00
drochner
ea7f1bd035 Add a VNDIOF_FORCE flag which forces unconfiguration if the emulated
disk is still in use.
Not for everyday use, but we have to face eg USB flash drives being
unplugged at the wrong time, and this is a way to simulate this without
wearing out the connectors.
2003-04-11 16:11:49 +00:00
explorer
07db7d8001 add Promise ATA/150 TX4 id 2003-04-11 02:49:40 +00:00
simonb
e200992e30 Use Tungsten T instead of m550. 2003-04-11 01:30:10 +00:00
simonb
fe2cc35875 Regen; rename Palm M550 to Tungsten T. 2003-04-11 01:28:18 +00:00
simonb
bbd68bc758 Rename Palm M550 to Tungsten T. 2003-04-11 01:25:25 +00:00
thorpej
a5bb7e6494 Group things in this file a bit more logically. 2003-04-10 18:04:20 +00:00
scw
dd3614f13a When attaching, make sure the "Reject Broadcast Mode", "Promiscuous Mode"
and "Pass Bad Frames" bits in the EPCR register are clear.

This works around a problem where firmware sets RBM for some reason before
handing control to the NetBSD kernel.
2003-04-10 15:23:19 +00:00
simonb
40149dc0bb Remove an assigned-to but unused variable. 2003-04-10 04:11:50 +00:00
simonb
430903deae rf_MakeLockTable() and rf_ShutdownStripeLocks() are used only in
rf_stripelocks.c - make them static functions.
2003-04-10 04:10:17 +00:00
simonb
d0f1ac2965 Remove an assigned-to but unused variable. 2003-04-10 03:36:02 +00:00
christos
1af07f5803 Add MIIF_FORCEANEG from Martin Husemann 2003-04-10 01:58:21 +00:00
christos
e3eb9da887 regen 2003-04-09 02:10:57 +00:00
christos
81e522b516 A cardflash NE2000 from Michael Francini francini at mindspring dot com. 2003-04-09 02:09:55 +00:00
thorpej
375bf0732b Need <uvm/uvm_extern.h>. 2003-04-09 01:35:12 +00:00