Commit Graph

15161 Commits

Author SHA1 Message Date
fvdl b30a81c90c Resurrect change from previous ahc driver version: reset channel (unless
configured not to in the BIOS) on first access.
2003-04-20 19:49:45 +00:00
fvdl c2a2dc04eb Fix ahc_print_registers some more. 2003-04-20 18:57:41 +00:00
fvdl ed7c318180 Fix ahc_print_register up. 2003-04-20 18:31:16 +00:00
fvdl 9af6ac1fc3 Initialize name and dma tag. 2003-04-20 16:52:40 +00:00
fvdl da526ebf96 Initialize ahc->name. From Izumi Tsutsui.
Set ahc->parent_dmat correctly.
2003-04-20 16:50:13 +00:00
fvdl c620a2fd66 Fix some AHC_DEBUG printf cases, and undef AHC_DEBUG. 2003-04-20 16:04:54 +00:00
fvdl 4d6d3fb37b Call ahc_softc_init in attach function. 2003-04-20 15:48:25 +00:00
fvdl c8a7cfc565 Actually define ahc_htole and reverse macros. 2003-04-20 15:32:10 +00:00
fvdl 6288ca0b93 Delay ahc_free until after shutdown hook disestablish. 2003-04-20 15:31:50 +00:00
bjh21 b05cf42fce Use %lu format and (u_long) cast when printing size_t. 2003-04-20 12:54:05 +00:00
fvdl 4fe822c162 Correct typo in previous. 2003-04-20 12:05:42 +00:00
fvdl 3bc3f3793f Add FreeBSD compat define for PPR_PCOM 2003-04-20 11:53:28 +00:00
fvdl 7ae27ded66 Regen. 2003-04-20 11:20:51 +00:00
fvdl 21e3127716 Sync with FreeBSD rev. 1.10: correct default precompensation value for RevA
hardware.
2003-04-20 11:19:33 +00:00
fvdl 26813b6545 Get rid of AHC_LUN_WILDCARD, making differences with FreeBSD smaller. 2003-04-20 11:17:20 +00:00
christos 9a119fd83b PR/21236: Simon Hitzemann: Fix missing space in error format. While I am
there make a single copy of the error string instead of 6 and share it.
2003-04-19 23:37:26 +00:00
christos 52be04c4cc PR/17738: Matthias Drochner, PR/21230: Onno van der Linden: vt100 wscons
crashes restoring cursor. Fixed by adding a flag as suggested.
2003-04-19 23:28:46 +00:00
fvdl 2d41d30fa5 NetBSD RCS Ids. 2003-04-19 19:38:21 +00:00
fvdl 0d9c871cee Adapt to newer backend. Needs testing. 2003-04-19 19:35:34 +00:00
fvdl 79bdc751aa Fix this to compile with the new driver. Needs testing. 2003-04-19 19:35:09 +00:00
fvdl ec7141e045 Newer ahc driver, port from Justin Gibbs' driver in FreeBSD. Ported by
Pascal Renauld at Network Storage Solutions, Inc, with some changes
by me.
2003-04-19 19:34:23 +00:00
fvdl ccadc2cbd3 Newer adaptec 7xxx driver. Written by Justin Gibbs for FreeBSD. Ported to
NetBSD by Pascal Renauld at Network Storage Solutions, Inc.
Some modifications by me.
2003-04-19 19:33:29 +00:00
fvdl 8a26def233 Add ahd at pci (to be added later). 2003-04-19 19:30:07 +00:00
fvdl 6fcbec2b8d Generated register/sequencer code include files for the ahc and ahd
drivers.
2003-04-19 19:27:50 +00:00
fvdl 7e92a81099 Newer aic sequencer assembler. From FreeBSD, written by Justin Gibbs.
Ported to NetBSD by Pascal Renauld at Network Storage Solutions, Inc.
Some Makefile changes by me.

The 79xx code isn't yet used, driver for that to follow shortly.
2003-04-19 19:26:10 +00:00
fvdl 40565542e4 Add NetBSD RCS id. 2003-04-19 19:21:35 +00:00
fvdl a434795392 Add a PCAP_NODT quirk. I have two older Quantum Atlas drives that work
fine at U2W, but barf at U160, with different controllers. Unfortunately
sometimes just being initialized at U160 does the trick, so setting them
to lower speed in the BIOS may also be needed.
2003-04-19 19:16:06 +00:00
fvdl 016a1095a9 A device should always respond to inquiry or test unit ready; disable
retries for these during discovery. From Pascal Renauld at Network
Storage Solutions, Inc
2003-04-19 19:12:59 +00:00
fvdl ea399d0682 Add MSG_QAS_REQUEST definition. 2003-04-19 19:11:13 +00:00
fvdl 76a06d99f3 IU pkt/task definitions include file. From FreeBSD. 2003-04-19 19:10:25 +00:00
tron 6d26862b28 Fix for ACPI poweroff problem provided by Takayoshi Kochi. This resolves
PR kern/20614 by myself.
2003-04-19 16:09:16 +00:00
christos 4bf8b7765e Put back bits of pr 9286 that got lost. Thanks to Onno van der Linden for
pointing this.
2003-04-19 15:47:45 +00:00
uwe 7b16962da2 Quirk Pilotech CRW-600. 2003-04-18 23:38:18 +00:00
uwe fa83041685 Regen for Pilotech CRW-600. 2003-04-18 23:31:43 +00:00
uwe f700119cc7 Add Pilotech and its CRW-600 6-in-1 USB flash reader. 2003-04-18 23:28:09 +00:00
explorer 2248468d68 add my 80 GB SATA drive to the quirk table. 2003-04-18 04:32:19 +00:00
thorpej 5a20f4be3c * Add a generic power management event API, defined in <sys/power.h>.
Right now, only power switch state change events are supported.  This
  is a work-in-progress.
* Add support to sysmon for delivering power mangement events to userland.
  Add poll, kqueue, and read entry points to sysmon.
* Adapt ACPI to use the new generic <sys/power.h> event types.

This provides the kernel support for a forthcoming powerd(8) which can
do nice things like gracefully shut the system down when an ACPI power
button is pressed.
2003-04-18 01:31:34 +00:00
mason d1b448c6e5 From current-users:
On Thu, Apr 17, 2003 at 11:26:26AM -0500, Dave Huang wrote:

> Typo police here :) "whose," not "who's."
2003-04-18 00:35:14 +00:00
matt 062bcd3204 acpi.c needs sysmon_power too. 2003-04-17 20:56:29 +00:00
jdolecek 9d23bccfba add quirk for Avance Logic USB Audio
provided in PR kern/18986 by Yasushi Oshima
2003-04-17 16:43:44 +00:00
jdolecek 8d4a0cf374 regen:
fix handle for Avance Logic (AVANCELOGIC, not ADVANCELOGIC), and add
id for their USB Audio Speaker
provided in PR kern/18986 by Yasushi Oshima
2003-04-17 16:41:48 +00:00
jdolecek e566bf6b6e fix handle for Avance Logic (AVANCELOGIC, not ADVANCELOGIC), and add
id for their USB Audio Speaker
provided in PR kern/18986 by Yasushi Oshima
2003-04-17 16:41:00 +00:00
jdolecek 5e0c8413f3 uaudio_match_alt_sub(): fix the rate check in UA_SAMP_CONTNUOUS case
to match if UA_SAMP_LO() == UA_SAMP_HI() == rate
problem reported and fix provided in PR kern/18986 by Yasushi Oshima
2003-04-17 16:38:02 +00:00
fvdl 097bf36e7f Fix size_t printf formats in DIAGNOSTIC case. 2003-04-17 12:34:25 +00:00
wiz ad311c1708 Replace arm32 with arm ports that include the driver name in their GENERIC
(or any other kernel config, if no GENERIC exists).
Sort.
2003-04-17 11:55:08 +00:00
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
thorpej 24a4b8faa6 Use PAGE_SIZE rather than NBPG. 2003-04-09 00:28:28 +00:00
thorpej cf9d21bf8e Use PAGE_SIZE rather than NBPG. 2003-04-08 23:39:14 +00:00
thorpej 106ae5d65e Use PAGE_SIZE rather than NBPG. 2003-04-08 22:33:33 +00:00
matt 46acdfd875 Deal with discovery strangeness/timing issue. Sometimes the Ownership bit
on descriptor doesn't get reset so look beyond to the next descriptor to
see if it's been returned.  If it has, then just process the current one.
2003-04-08 19:37:17 +00:00
kml 0ad9e0dccc Host AP power saving support. The Host AP notices that the power
saving bit is set in incoming frames from a station, and buffers the
outgoing frames for the station until they are polled for.  This
requires support in the driver to set a bit in the TIM bitmap sent
during 802.11 beacons.

So far, support for power saving in Host AP mode is only available
for the PRISM2 chipset.
2003-04-08 04:31:23 +00:00
junyoung 247328b16a As beginning of merging uwscons to -current:
- Add a (temporary) printf to vga_raster_load_font() for tracking font
  loading process. If you encountered "vga_raster_load_font: called"
  kernel message, please let me know.
- While here, some KNF.
2003-04-07 05:48:54 +00:00
wiz 68caa698b2 Respect the law: Use A-law and mu-law as spellings as far as easily possible.
Inspired by Igor Sobrado in PR 19680.
2003-04-06 18:20:07 +00:00
ragge f2523f5b9f A bunch of fixes to make the DHU driver much more efficient,
from Hugh Graham (hugh@openbsd.org).
2003-04-06 15:45:11 +00:00
tsutsui 4d0733ceec Add oosiop. 2003-04-06 10:10:38 +00:00
tsutsui afa38ad0e6 Regen scripts for new oosiop. 2003-04-06 09:52:21 +00:00
tsutsui bcf0b777ce Tweak siop scripts assembler for new oosiop. 2003-04-06 09:50:29 +00:00
tsutsui 7b4697bdbe Add MI NCR/Symbios 53c700 SCSI driver.
This "oosiop" driver was originally written by Shuichiro URATA
for arc port, and then it was modified by me to make it work
also on hp700.

This driver has been tested on my NEC Express5800/240 with 53c700-66
for several months, and also tested on HP9000 735/125 with 53c700
(though current hp700 port has been broken since SA merge).
Both sync transfer and disconnect/reselect work fine,
but tagged queuing is not implemented yet.
2003-04-06 09:48:41 +00:00
nakayama a58fc7e1b2 Regen. 2003-04-05 19:11:44 +00:00
nakayama c559c6cf5d Rename "USB Reader" to "USB 6 in 1 Card Reader/Writer" more clearly
(pointed out by perry in private mail).
2003-04-05 19:10:12 +00:00
nakayama f126378bbb Add quirk for Pen USB Reader. 2003-04-05 17:25:33 +00:00
nakayama 5890db6c2a Regen. 2003-04-05 17:23:49 +00:00
nakayama 59a67e04d6 Add USB Reader. 2003-04-05 17:22:50 +00:00
lha 23d7d55666 Regenerate.
(add Radeon Mobility M7 LW (AGP))
2003-04-05 16:43:47 +00:00
lha 76fa548db5 add Radeon Mobility M7 LW (AGP) 2003-04-05 16:41:42 +00:00
kent d49a3d652c Support for 82540EP and 82540EP (LOM).
Not tested.
2003-04-05 13:23:17 +00:00
kent 42243152f6 Add '(ICH3)' to the names of 82801CA for consistency with other 82801xx names 2003-04-05 13:00:15 +00:00
kristerw b8943cbf89 Save some text segment space by not defining URLPHY_DEBUG. 2003-04-04 22:21:39 +00:00
matt 6193e8a4a1 Remove #define DEBUG. (this was working right. The problem I encountered
was due to a bug in PPCBOOT.  It was not ordering DIMM space largest to
smallest so that you could badly alignment memory).
2003-04-04 20:09:07 +00:00
kent fa6424efa5 Support for ICH4M IDE Controller 2003-04-04 11:01:48 +00:00
kent e7a590c1f1 Support for i82450EP. 2003-04-04 06:45:12 +00:00
perry 3668dc75e5 fix from OpenBSD, contributed by Gabriel Gonzalez in PR kern/20999 2003-04-04 01:04:37 +00:00
fvdl 8103646465 Check RAW_PART against the media size instead of the disklabel.
Add the media size in 512-byte sectors to the softc, to avoid
some 64 bit computations. Bump the capacity stored in softcs
for disks to 64 bits.
2003-04-03 22:18:23 +00:00
erh dcf3619707 Add a quirk to allow my NEO Jukebox to work again. 2003-04-03 17:41:51 +00:00
kent 8691cfff6c regen 2003-04-03 16:15:22 +00:00
kent 22f1378011 - Forte Media PCI joystick
- Intel 82540EP chips
- Intel ICH4M IDE controller
- Modify descriptions of some ICH4 devices which ICH4M also has:
	82801DB xxx -> 82801DB/DBM xxx
2003-04-03 16:13:53 +00:00
christos 7aec408c5a avoid stupid printfs during probe 2003-04-03 15:36:31 +00:00
christos 773ff89c7e avoid stupid printfs during probe when debugging is on. 2003-04-03 15:35:41 +00:00
christos d77be05384 PR/20982: Eric Fair: fix debugging printf format errors. 2003-04-02 21:53:15 +00:00
he f918a51ddd Change SBSIZE -> SBLOCKSIZE, to track changes caused by the UFS2 merge. 2003-04-02 20:38:28 +00:00
he 6098c9ba7f Change SBSIZE to SBLOCKSIZE to make this compile after UFS2 was brought
in.  OK'ed by ragge.
2003-04-02 20:32:01 +00:00
drochner 9ec3975139 allow to customize how highlighting and underlining text is substituted
if the display doesn't provide this
submitted by xs@kittenz.org per PR kern/18004
2003-04-02 18:22:56 +00:00
drochner f9773705b1 fix crash due to wrong argument in the (almost useless)
DECRQUPSS escape sequence
2003-04-02 17:48:59 +00:00
briggs cb2eb4a01a Mmmm... LOCKDEBUG...
Change from unlock -> modify -> unlock to _lock_ -> modify -> unlock.
2003-04-01 20:59:15 +00:00
matt d914d04522 Cleanup PCI support. 2003-04-01 19:11:44 +00:00
thorpej 52d8769e0b Use PAGE_SIZE rather than NBPG. 2003-04-01 02:01:43 +00:00
thorpej d58deb08c2 Use PAGE_SIZE rather than NBPG.
XXX Except in one place which will require more work.
2003-04-01 01:58:14 +00:00
thorpej 24ab4adb9c Use PAGE_SIZE rather than NBPG. 2003-04-01 01:53:40 +00:00
augustss a302bab585 Add an option to disable fast back-to-back transfers since this
breaks certain hardware combinations.
2003-03-31 21:04:40 +00:00
jdolecek cd8e491e95 sprinkle const qualifiers to const stuff 2003-03-31 18:47:58 +00:00
elric 00a9b3965c Removed some debugging printfs that made it into the tree. 2003-03-31 08:45:08 +00:00
perry 5afd6ce206 revert for now -- cancelled seems to be used more often than canceled 2003-03-31 03:35:02 +00:00
perry 29c5490e43 again, for consistency, cancelled->canceled (I fear the flames) 2003-03-31 03:26:34 +00:00
perry 253eea8c49 For consistency, initialise->initialize.
(No it isn't anti-UK bias -- just trying to keep the whole system to
one consistent spelling.)
2003-03-31 03:23:38 +00:00
jdolecek 3f1816bf46 sprinkle some const qualifiers 2003-03-30 19:20:37 +00:00
toshii ba612a905f Use MaxPacketSize for setting up isochronous pipe for recording.
This fixes dropping samples.
2003-03-30 04:47:13 +00:00
matt 374319260c Don't free chqueue since it's no longer malloc'ed. 2003-03-30 02:06:29 +00:00
jdc 6df227f447 Regenerate.
(Add support for USRobotics Wireless Access PCI adapter (model 132415).)
2003-03-29 20:56:54 +00:00
jdc 8e265123d8 Add support for USRobotics Wireless Access PCI adapter (model 132415).
From Sergio Jimenez in PR kern/20642.
2003-03-29 20:49:03 +00:00
matt 6c8a4d2615 Make this compile again. 2003-03-29 20:15:31 +00:00
perry 3942053914 regen 2003-03-29 16:48:02 +00:00
perry c0eb24419a support Corega PCCL-11 -- from Christopher SEKIYA in PR 20932 2003-03-29 16:47:27 +00:00
he f8cb6d60a7 Allow this file to be included if either of audio, midi or midibus
is non-zero (earlier only allowed it if audio was non-zero).  Fixes
build problem seen on the prep port.
2003-03-29 13:57:43 +00:00
dyoung 243f751604 Support so-called "PLX" bridge for wi(4). From FreeBSD via Simon
Burge. Simon writes,

"Here's the patch that Grant and I have been using on a combinations of
architectures and both NetBSD 1.6 and -current.

"This is based on FreeBSD - look for
        /* We have to do a magic PLX poke to enable interrupts */
in
        http://www.freebsd.org/cgi/cvsweb.cgi/src/sys/dev/wi/if_wi_pci.c
2003-03-29 03:25:22 +00:00
perry 935d1a04e3 Fix PR/20903 for real.
Identical patches supplied by:
Masuda Hideo <h-masuda@ootani.nagata.kobe.jp>
Christopher SEKIYA <wileyc@rezrov.net>
2003-03-28 13:58:40 +00:00
perry 964bf1e7f5 ifdef out something dependent on PCI_VENDOR_COREGA for now. 2003-03-27 20:09:07 +00:00
drochner ba0f309a91 Before checking the (Intel specific) SCR_T4 register, make
sure the chip implements 100T4 (in BMSR).
The 82562 (which doesn't implement 100T4) has the SCR_T4 bit
(always?) set, which led to wrong media status reports.
approved by thorpej
2003-03-27 19:36:49 +00:00
yamt 77312f97f8 read-only configuration support. 2003-03-27 15:34:36 +00:00
perry 3086473c25 Tell driver to accept the Corega CGWLPCIA11.
Submitted by h-masuda@ootani.nagata.kobe.jp in PR #20903
2003-03-27 14:43:30 +00:00
ichiro cb6506defc regen 2003-03-27 12:20:07 +00:00
ichiro 26d61dcb91 add product TOSHIBA PA2673U CBIDE2 (IODATA OEM) 2003-03-27 12:19:44 +00:00
dyoung bfdccc21aa 802.11 MLME-JOIN.request is an abstract MAC function that is not
necessarily exposed to the host, so Lucent/Agere/whatever is correct
in not supporting it.
2003-03-27 07:22:47 +00:00
matt 8909c240f2 Add GT_PCI{0,1}_{IO,MEM}{SIZE,START} options 2003-03-27 07:21:30 +00:00
matt caff52554f Only print IRQ is it's not the default value. 2003-03-27 07:20:48 +00:00
dyoung 016e6c270f HostAP broke in version 1.4.2 of station firmware. Try 1.3.x, 1.4.9,
or later.
2003-03-27 05:00:21 +00:00
dyoung 913d1b877a Cosmetic: move sc_reset closer to its siblings sc_disable and sc_enable. 2003-03-27 04:53:52 +00:00
dyoung 404d2ac6e8 Introduced sc_reset to wi_softc. The bus-specific front-end gets
to fill this.
2003-03-27 04:34:16 +00:00
thorpej ecb44c329e Add PCI VPD access routines. From psi.cz!freza, PR kern/20889. 2003-03-25 21:56:20 +00:00
tsubai 2a1daaf4ea Regen. 2003-03-25 18:30:14 +00:00
tsubai f95ee615c8 Add new Apple devices. 2003-03-25 18:28:15 +00:00
mjacob 183d384362 Fix even stupider fix. It was, in fact, right the first time. Add
a comment clarifying things.
2003-03-25 06:25:35 +00:00
matt 0e5392f73f Make reset delay depend on the baud rate. 2003-03-24 20:03:23 +00:00
matt bd800e6684 Fix tyops. Add 2 defines. 2003-03-24 17:03:18 +00:00
matt a69a0868cc Make gtmpsc configurable via config file. (baud rate source, frequency). 2003-03-24 17:02:14 +00:00
matt a09a7e1927 Update bpf interface to current. Make output buffers aligned to a
cacheline bounary.  Only put hash table and descriptors in uncached
memory, buffers are in cached memory.
2003-03-24 17:00:54 +00:00
pk 3592333cbb #include <sys/lock.h> 2003-03-24 14:46:00 +00:00
tron ea710d8119 Don't print a kernel message like "bge0: gigabit link up" when a Gigabit
link is detected. No other ethernet driver does this and this driver
doesn't do it for other modes.
2003-03-24 12:06:05 +00:00
drochner 4b3ca2b813 Remove an aprint_normal() so that the output looks reasonable
at least in the non-error case.
(The aprint_* stuff makes it hard to keep track of newlines and
device name tags, and it suffers from lack of rules.)
2003-03-24 09:12:55 +00:00
ragge a6f8cf96f1 Add rfc/rf. 2003-03-23 11:03:04 +00:00
ragge 281464eb81 Driver for RX01/02 floppies, written by Jochen Kunz. 2003-03-23 11:01:16 +00:00
simonb ea65230233 Regen: Add device id for Trumpion T33521. 2003-03-23 00:58:16 +00:00
simonb 3dd66de041 Add device id for Trumpion T33521 (used in (at least one) Creative MP3
player, almost attaches as a sd@umass).
2003-03-23 00:57:15 +00:00
thorpej 8f70c6754b Add a work-around for the "short cable problem" that some DP83815
revisions have, as discussed on the soekris-tech mailing list a
while ago, whereby one can experience excessive recieve erros when
using < 30m cables.  The patch detects overflow in a DSP filter
parameter, and corrects it by writing a known good value.
2003-03-23 00:56:15 +00:00
matt d641dc322f Don't malloc channel_queue, put it in the softc instead. 2003-03-22 20:09:35 +00:00
matt 3a494ed040 Don't malloc the channel_queue, put it in the softc. Print modes too. 2003-03-22 20:05:20 +00:00
matt 7ba7388e87 Don't malloc channel_queue, put it in the softc. 2003-03-22 20:01:05 +00:00
matt 0d90a1db08 No reason to malloc channel_queue, put it in the softc instead. Clean up
a few other things while here.
2003-03-22 19:57:14 +00:00
jdolecek 36dc52ad95 regen - add 3Com TCM6790 entry 2003-03-22 14:31:28 +00:00
jdolecek eede41c54a add TCM6790 entry 2003-03-22 14:30:48 +00:00
nakayama 14a2f27862 Make it compile in big endian. 2003-03-22 11:32:38 +00:00
nakayama a8e1b2f5c5 PCI-CardBus bridge support for sparc64:
- add pccbb_attach_hook in pccbbattach for MD initializations.
- omit arithmetics to bus_space_handle_t.
- remove use of IST_LEVEL; not defined on sparc64 and unused.
2003-03-22 06:25:14 +00:00
nakayama 64f7818314 PCI-CardBus bridge support for sparc64:
- use u_long for extent_alloc_subregion result instead of bus_addr_t.
  (sizeof u_long != sizeof bus_addr_t on 32bit kernels of sparc64)
2003-03-22 06:18:22 +00:00
dsl bd99e3429d Use 'void *' instead of 'caddr_t' in prototypes of VOP_IOCTL, VOP_FCNTL
and VOP_ADVLOCK, delete casts from callers (and some to copyin/out).
2003-03-21 23:11:19 +00:00
thorpej 3f2184def7 Work around a buggy PHY in some Seagate S-ATA drives which get confused
by the way some S-ATA controllers packetize data when the sector count of
the transfer mod 15 is 1.
2003-03-21 22:40:56 +00:00
dsl 60418b39b7 Change 'data' argument to fo_ioctl and fo_fcntl from 'caddr_t' to 'void *'.
Avoids a lot of casting and removes the need for some line breaks.
Removed a load of (caddr_t) casts from calls to copyin/copyout as well.
(approved by christos - he has a plan to remove caddr_t...)
2003-03-21 21:13:50 +00:00
mjacob 2b72827e41 Fibre Channel doesn't need bus reset settle time. 2003-03-21 18:05:16 +00:00
uwe f6280fb246 Add igsfb. 2003-03-21 09:59:30 +00:00
thorpej 35b45642d8 Regen; add more LSI MPT IDs. 2003-03-20 05:50:12 +00:00
dbj 1820cd2e5c use PRId64 to printf bp->b_blkno, which is of type daddr_t 2003-03-20 05:49:21 +00:00
thorpej 5d2e1c600f Add some more LSI MPT IDs. 2003-03-20 05:49:20 +00:00
thorpej d7e289bb70 Add support for the Silicon Image SATALink 3112 Serial ATA controller. 2003-03-20 04:22:49 +00:00
christos fb66693ce7 It is not appropriate for pcivar.h to include "locators.h"
The two files that need it, should include it themselves.
2003-03-19 17:56:58 +00:00
bouyer a9065a3962 tl(4) supports ETHERCAP_VLAN_MTU. 2003-03-19 17:23:26 +00:00
augustss ca5deec209 Regen. 2003-03-19 16:22:46 +00:00
augustss 9f3758dce4 Add an NHJ camera. 2003-03-19 16:22:24 +00:00
thorpej a3e379d70c Fix pasto. 2003-03-19 15:13:57 +00:00
jdolecek 01c5cb6a8b add a compile-time check that audio(4) was actually configured into kernel
assumption here is that all (and only) audio device drivers include this header
adresses PR kern/11508 by Thomas Klausner
2003-03-19 10:53:40 +00:00
matt 0e4975df24 Split PCI initialization out of attach hook. 2003-03-18 19:32:46 +00:00
matt 923175a28a remove some unneeded code. 2003-03-18 15:09:28 +00:00
matt ee2ba43d39 Enable I/O & memory access too. 2003-03-18 15:00:00 +00:00
matt 8fb546ff67 Do minimal initialization of PCI. 2003-03-18 05:51:51 +00:00
matt 051e31601c Derive baud rate from cpu_timebase on powerpc. 2003-03-18 05:50:02 +00:00
thorpej b1469da17f Add register definitions for the Intel i31244 Serial ATA controller. 2003-03-18 01:41:54 +00:00
thorpej 97cbf6847d Add very basic support for the Intel i31244 Serial ATA controller.
We only support legacy (i.e. PCI IDE compatible) mode, for now.  Also
note that DMA is disabled for rev 0 chips unless explicitly enabled
with PCIIDE_I31244_ENABLEDMA.
2003-03-18 01:13:08 +00:00
thorpej ba6d4102d9 Regen; added Silicon Image SATALink 3112. 2003-03-18 00:53:03 +00:00
thorpej 11f5d687df Add Silicon Image SATALink 3112. 2003-03-18 00:45:54 +00:00
matt 631dbeba1a Use generic softintr. switch from consinit to explicit cnattach
framework.  Use bus_space for access register access.
2003-03-17 16:42:47 +00:00
matt f27033251e Use a subregion for the mac's ethernet registers. Shaves 512 bytes
from the driver.
2003-03-17 16:41:15 +00:00
toshii 45469b1ffc Fix a memory leak in emuxki_voice_new.
Pointed out by Izumi Tsutsui in the current-users mailing list.
2003-03-17 12:29:09 +00:00
toshii 92684e028b Make emuxki_voice_set_audioparms return EINVAL if invalid sample rate
is passed.
2003-03-17 12:20:27 +00:00
toshii 36a24737cd Fix recording with formats other than 16 bit slinear_le, based on the
patch submitted as kern/20620.
2003-03-16 16:33:48 +00:00
toshii 6e79d819f7 Remove a couple of false comments, as pointed out in kern/20620. 2003-03-16 13:34:24 +00:00
matt 08ea2a499c Cleanup. Move much of the code to bus_space instead of using
private mechanisms.
2003-03-16 07:05:33 +00:00
matt 7f87f176b2 Add obio attachment for things like rtcs, com, and flash. 2003-03-16 07:03:30 +00:00
bouyer 3cb1252a05 Ops, I commited the previous change (improved SiS support) from thr wrong tree.
Sync with the latest diff I made available, and also include changes from
kern/20710 which is much better than the hack I've done.
2003-03-15 12:23:34 +00:00
bouyer 53a7926962 Rework SiS support: more controller supported (up to Ultra/133) and better
support for the older ones.
Information for this work extracted from Soeren Schmidt's FreeBSD driver.
2003-03-14 22:46:05 +00:00
bouyer 8bc89ec2cb Move the SCSI_DELAY before the serialization for probe. multiple SCSI busses
can sleep, only probes have to be keept ordered.
2003-03-14 22:17:14 +00:00
jdolecek 635035691e apparently this driver works fine for Intel PRO/100 VM with 82562EM/EX PHY,
so make driver match it
while here, also make the driver match 'Intel PRO/100 VM with
  82562EM/EX (CNR) PHY', with anticipation it would work fine too
activate the resume and dynamic standby bug workaround for these; might
  not be necessary (not confirmed to be needed), but better safe than sorry

Adresses PR kern/20689
2003-03-14 22:04:03 +00:00
jmmv 013ec8e6f0 Add not sign, currency and cent keys to the spanish keymap.
Fixes my own PR kern/17990.
2003-03-14 15:45:53 +00:00
simonb 1ff45ded4f Fix some white-space niggles. 2003-03-14 02:21:01 +00:00
joda 1835525147 regen: more nvidia devices 2003-03-13 17:55:57 +00:00
joda fd202f08fe more nvidia devices 2003-03-13 17:55:24 +00:00
briggs 85d93f8d10 Detect SMC EZ Card as 64-bit. Patch from Pavel Cahyna in kern/20680. 2003-03-13 13:57:01 +00:00
bsh 436b3debe1 make this compile with SLHCI_DEBUG 2003-03-13 06:50:23 +00:00
minoura 552efeab39 Disable ISA DMA emulation for SoundBlaster module explicitly.
This fixes the floppy access problem on some hardware.
Problem reported by Miroslav Kure via Jason Wright <jason [at]
thought [dot] net> of OpenBSD. Thanks.

Fix from ALSA driver; although this setting is undocumented but
according to Jaroslav Kysela <perex [at] suse [dot] cz> of ALSA,
there's no error reported so far.
2003-03-12 13:36:22 +00:00
minoura f5e8ac30e3 Typo.
Register value symbols YDS_PCI_EX_LEGACY_SBMOD_* ->
YDS_PCI_EX_LEGACY_SMOD_*.
2003-03-12 13:28:19 +00:00
wiz 5feeffaf69 Remove some. 2003-03-12 00:24:41 +00:00
wiz b413b8eb87 Update script for bktr-sf imports. 2003-03-12 00:23:39 +00:00
wiz fa96c20c88 Merge some more. 2003-03-12 00:19:20 +00:00
wiz 0cdd0c6614 Merge first bktr-sf import. 2003-03-12 00:14:40 +00:00
wiz a0685571bd Import of current state of bktr(4) in sourceforge repository.
Changes since last import:
. lots of whitespace cleanups
. typo fixes (e.g. hz, compatibilty)
. fix brightness ioctl return value
. wait for int ready using DELAY() instead of tight loop
2003-03-12 00:02:19 +00:00
augustss 287c3adc4d Update URLs for the HID spec.
(Committed at 36000 feet above the Atlantic on board LH418 using
a broadband satellite connection.)
2003-03-11 16:44:00 +00:00
drochner f4f1e00d62 make a kernel with the combination ohci@cardbus + ehci@pci link 2003-03-11 11:59:31 +00:00
thorpej 5d036d28d6 Fix an error message. 2003-03-10 20:50:22 +00:00
augustss bf2de652b1 Change debug message. 2003-03-09 19:51:13 +00:00
jmc 4829a1952a Redo last fix to work correctly. Need to run abort on each orb (though it
doesn't much now it will eventually) and then so a proper sbp2_free_orb.
2003-03-07 20:18:57 +00:00
jonathan cd38c4da5c Commit workaround for hardware bug: 5701 chips running in PCI-X mode
require that the DMA receive buffers be aligned. The driver was
deliberately mis-aligning by 2 bytes, to force the layer-2/3
headers to 32-bit alignment.

Workaround: if chip is a 5701, and is in PCI-X mode, leave the DMA
buffers aligned.  If the host CPU requires alignment, copy the buffer
after reception to force aligment.

Tested  on an i386 in  PCI-X bus, with __NO_STRICT_ALIGNMENT forced off.

Patch and comments reworked  to minimize drift from
	FreeBSD if_bge.c rev 1.14.
2003-03-07 18:57:53 +00:00
jonathan 5214474746 Fix typo: PRODUCER_BUG quirk mask overlapped the PCIX register-bug quirk.
(Harmless, since we dont use the latter; but we will use it very soon.)
2003-03-07 18:40:18 +00:00
drochner c0e23f3152 -Fix ORB queue corruption / use of free()d memory
caused by bad interaction of sbp2_free() and sbp2_abort().
 sbp2_abort() requires that its argument ORB is on the
 "active" list, and it puts it onto the freelist - sometimes.
 So we had 2 causes of corruption:
 -removing the ORB from a list which it isn't on
 -free()ing recycleable items on the ORB freelist
-minor cosmetics
2003-03-07 16:29:33 +00:00
drochner 49e6bf0fa5 Add support for "simplified direct" (aka RBC) devices.
This reveals some ugly points in the sd driver, as
the PQUIRK_ONLYBIG flag (there are 6, 10, 12 and 16 byte
CDBs for r/w) and the handling of small/big mode
select/sense. This should be cleaned up.
Also the "long" struct disk_parms.disksize is worth
a thought...
2003-03-07 16:18:57 +00:00
kanaoka 5c5aa9ba83 Make sure this compiles with ACPI_DEBUG.
Pointed out by Patrick Welche <prlw1@newn.cam.ac.uk>.
2003-03-07 15:17:44 +00:00