Commit Graph

7912 Commits

Author SHA1 Message Date
thorpej
2d66ccbd13 Don't return an uninitialized error code. 2000-05-03 18:58:37 +00:00
thorpej
01e8438aa8 Fill in ccb->ccb_req.sgcount with the value that's guaranteed to
be initialized.
2000-05-03 18:58:15 +00:00
mycroft
d0d92c23d0 Use USBD_NORMAL_COMPLETION in the previous. 2000-05-03 18:21:36 +00:00
mycroft
ffe599486c When emulating UHF_PORT_POWER for the internal hub, make sure to initialize
the status return value.
2000-05-03 18:14:49 +00:00
bouyer
3bb9a5f666 - do sync/wide negotiation
- use a circular queue for the start slots, so that order has better chances
  to be preserved.
2000-05-02 19:03:02 +00:00
augustss
621ef4d785 Add am7930 audio driver. 2000-05-02 06:43:05 +00:00
augustss
f9dbbf4c92 Make am7930 driver machine independent. PR 10032 from Gregory McGarry. 2000-05-02 06:30:49 +00:00
nathanw
8ca78ff825 In siop_lookup_product(), actually check the PCI *vendor* ID as well as the
product ID.
Prevents false matches of other devices, such as the DEC 21050 ppb.
2000-05-02 03:59:35 +00:00
thorpej
712326ecbd Traditionally, the floppy controller was configured at 0x3f0 for 8 ports,
but the registers actually begin at 0x3f2, and this is what PNPBIOS reports
for the floppy controller resources.  Adjust the register offsets and the
mapping of them for the ISA front-end to compensate, so that the PNPBIOS
attachment of the floppy controller actually works.
2000-05-02 03:33:45 +00:00
thorpej
5e915fcab9 Nuke some dead code. 2000-05-02 03:32:09 +00:00
augustss
c7d698ac41 Support recording conversions that change the sample size. PR 10029, from Gregory McGarry. 2000-05-02 00:00:00 +00:00
augustss
2365a92cb5 Add Creative Music System driver. From Gregory McGarry <g.mcgarry@ieee.org> 2000-05-01 22:48:33 +00:00
augustss
4e1e58e353 Change the way the codec is access to mimic how Linux&FreeBSD does it. 2000-05-01 17:15:41 +00:00
augustss
07f142cd50 Add some more debug output. 2000-05-01 17:10:40 +00:00
tsutsui
9498452c05 - Move some initialization into MI rl_attach() from each bus attachment.
- Use proper CARDBUS_* macro in if_rl_cardbus.c
- Use product ID read from PCI configuration space rather than from EEPROM
  in if_rl_pci.c.

Patch sent from Masanori Kanaoka <kanaoka@ann.hi-ho.ne.jp> and
some cosmetic changes by me.
2000-05-01 15:08:50 +00:00
soren
ac6e6c980d Add Seeq 8003 register definitions. 2000-05-01 08:06:17 +00:00
takemura
7d3231b37a Mouse move event should be made before mouse bown event. Without that,
you may got a mouse down event in strange plase.
2000-05-01 07:36:58 +00:00
augustss
fec9706315 Remove unneeded #include "mpu.h" 2000-04-30 22:16:56 +00:00
augustss
aaa405eab7 Add driver for C-Media CMI8x38 Audio Chip. From Takuya SHIOZAKI <AoiMoe@imou.to> 2000-04-30 21:59:58 +00:00
dante
1dbea6c0f9 Add new microcode for all of the supported boards.
Fix minor glitches.
Add preliminary support for ASB-3940U3W host adapters; it might work w/ autotermination on.
ASB-3940U3W support is not yet tested due to lack of board.
2000-04-30 18:52:14 +00:00
dante
ff84aeb762 Add ASB-3940U3W host adapters (AdvanSys) 2000-04-30 18:46:18 +00:00
dante
d2679acf60 Add ASB-3940U3W host adpeter (AdvanSys) 2000-04-30 18:34:53 +00:00
tsutsui
439b360ab9 Modify EEPROM read functions and handle also 9356 EEPROM.
Fixes kern/9861.
2000-04-30 12:00:40 +00:00
ragge
e623cd6f8f Discard these old leftovers from the IMP and trailer days! 2000-04-30 11:50:50 +00:00
ragge
6f6bea9eed Change to use new ubareset() functionality. 2000-04-30 11:46:49 +00:00
ragge
6758522763 Add function uba_reset_establish() to register reset functions like
uba_intr_establish(). Basic framework for resource (BDP) allocation,
not yet finished.
2000-04-30 11:46:03 +00:00
ragge
8995505723 Rewritten (most of) the DEUNA/DELUA driver. No more data copy, packet
header fiddling and forget driver support for trailers.
2000-04-30 11:43:26 +00:00
mycroft
73ac8c709b Add a concept of the `background attribute'. This is the same as the
current attribute, but has all non-color flags turned off.  Use this when
doing erasure, as this allows us to optimize repainting in curses.

XXX The way the default attribute is handled is totally bogus and needs to
be fixed.
2000-04-28 21:56:16 +00:00
augustss
23bcab075a Don't request sense after INQUIRY. From FreeBSD & OpenBSD. 2000-04-28 21:34:05 +00:00
augustss
d2e2dce826 Regen. 2000-04-28 20:54:39 +00:00
augustss
0b9c397110 Add 2 more eap audio devices. 2000-04-28 20:54:10 +00:00
is
4cacfc5684 change 10base-t media _setting_ to set autodetect instead.
Contrary to what the rtl8019 docs say, this seems to be necessary.
Observed by myself when implementing non-auto earlier, and independently
complained about by Antti Kante in PR 9962.
2000-04-28 17:49:03 +00:00
uch
bbb8c56fcb add PCI_MAPREG_PPB_END (PCI-PCI bridge) PCI_MAPREG_PCB_END (PCI-Cardbus bridge) 2000-04-28 17:12:45 +00:00
augustss
308fa27a0d Unmute some mixer controls by default. From OpenBSD. 2000-04-28 12:39:59 +00:00
jdolecek
520f9dc581 pasfind(): avoid silly bug - if bus_space_map() of SB I/O space failed,
we used bad label and tried to bus_space_unmap() invalid memory
	region

Fixes port-i386/9992 by Jarkko Teppo <jate@uwasa.fi>.
2000-04-28 08:51:42 +00:00
tsutsui
61e3f39169 Fix copyright notice as per request from the author. 2000-04-28 03:48:56 +00:00
bouyer
fcf693203f More big-endian fixes from Izumi Tsutsui. 2000-04-27 16:49:07 +00:00
augustss
30c20f930f Change my email address. 2000-04-27 15:26:44 +00:00
augustss
91878e8679 Reorder some #defines. 2000-04-27 15:25:36 +00:00
bouyer
fe54b787dc Add NetBSD RCS Id and copyrigth notice. 2000-04-27 14:08:09 +00:00
bouyer
bf7a94ec2b Fix copyrigth notice. 2000-04-27 14:06:57 +00:00
bouyer
2fb93595b2 Note siop changes. 2000-04-27 12:48:59 +00:00
oster
db11351ced Make sure the config structure allocated during autoconfiguration actually
gets initialized properly.  Should fix PR#9816.
2000-04-27 00:57:48 +00:00
bouyer
ce7f4dafe1 Big-endian fixes from Izumi Tsutsui. 2000-04-26 20:00:31 +00:00
thorpej
ef25b7769e Regen. 2000-04-26 17:30:59 +00:00
thorpej
0defe75e76 Add product ID for the PLX Technology 9060ES PCI bus controller. Note this
ID isn't normally seen, as just about every device with a PLX on it loads
a different ID from an EEPROM, but there's no harm in documenting it.
2000-04-26 17:30:35 +00:00
ad
d5d441a516 - Bump xfer size limit to the maximum allowable.
- 20 CCBs is enough to maintain a constantly stuffed inbound FIFO.
2000-04-26 15:58:01 +00:00
ad
75bb77ed56 - Rearrange some spl*() calls to be as intended.
- Scan cac_cd in cac_shutdown(), don't use a SIMPLEQ.
2000-04-26 15:54:02 +00:00
tsutsui
b4f524c223 - Allocate mbuf dynamically on Tx and use bus_dmamap_load_mbuf(9).
- Call bus_dmamap_sync(9) as appropriate.
- Leave only register declarations in rtl81x9reg.h and
  split other stuff into rtl81x9var.h.

bus_dma(9) code mostly taken from thorpej's if_rtp.c.
2000-04-26 14:02:34 +00:00
thorpej
8b8597dae0 Recognize the Crystal CS4297A codec, and add a couple of macros
to manipulate AC97 codec IDs.
2000-04-26 00:00:41 +00:00
bouyer
eba93ce7d2 Ops, need to restore correct DSA value after a phase mismatch, we may have
been interrupted during a S/G operation.
2000-04-25 20:02:33 +00:00
bouyer
88be4752d0 - Change the script to start new commands in an asyncronous way, using
'command slots' in which the host can put command and wait for the script
 to start them
- Change siop.c to do full disconnect/reslelect, allowing as much as one
 command per target/lun to run in parallel.
- Fix bug in registers init where a board without BIOS would end at
  ID 0 (now the driver works on alpha too).
- better handling of messages, sending back a MSG_EXT_SDTR in response to an
  incoming MSG_EXT_SDTR, and MSG_MESSAGE_REJECT for unhandled messages.
- fix use of bus_dmamap_sync() and htole32().
- supports shared interrups
- change some int8 and int16 to int, for alpha and mips benefits ( suggested by
  Toru Nishimura)
2000-04-25 16:27:05 +00:00
bouyer
5ee6872b46 - Add support for NOP instruction
- fix dsp value for second operand of memory move, so that patch list will be
  correct.
2000-04-25 16:01:16 +00:00
augustss
df70862e8c Insert (very conservative!) bus_space_barrier() calls at all register accesses.
The bus_space(9) man page says you've gotta have them...
2000-04-25 14:28:13 +00:00
tsutsui
6369b56c99 Fix two endian problems. rtk now works on macppc.
- Use le32toh() on reading rxstat from the Rx DMA buffer.
- rl_read_eeprom() should return EEPROM values in little endian
  when caller requires byte-stream data.

bus_dma(9) fixes are still on-going.

XXX rtk on macppc seems to make tons of CRC errors...
XXX Does it work fine on i386 or others?
2000-04-25 14:16:46 +00:00
augustss
74beeca710 Move the size of the mapped bus_space region into the bus independent softc. 2000-04-25 09:20:54 +00:00
augustss
aae26d0d0c Move a test if the MIDI is open outside a loop in the interrupt routine.
Some stylistic changes.
2000-04-24 17:55:24 +00:00
tsutsui
6f9392b42a Merge changes of sys/pci/if_rl.c rev. 1.8->1.10. (from kern/9870)
Also remove unused pbase, vbase and PCI_CAP_PWRMGMT declarations.
2000-04-24 15:25:00 +00:00
augustss
4d0217d2c1 Remove item. 2000-04-23 23:21:32 +00:00
augustss
007a7dbfd8 Update with new files. 2000-04-23 23:19:36 +00:00
augustss
0e5c7f55af Regen. 2000-04-23 19:35:35 +00:00
augustss
23f3c0074f Sync with FreeBSD: add two more adapters. 2000-04-23 19:03:45 +00:00
thorpej
0cde36f780 Carve off the ISA configuration bits from the floppy driver. Driver is
still ISA-specific, but we can attach ISA instances with different
configuration mechanisms now.
2000-04-23 16:47:45 +00:00
augustss
b12ed6c03b Make it possible to move a device to its unconfigured state by
using config #0.
2000-04-23 00:46:59 +00:00
augustss
bc5e86601e Add an item. 2000-04-22 22:52:15 +00:00
augustss
3a27942ba8 Add a clarifying comment. 2000-04-22 22:50:44 +00:00
thorpej
8ec60a189f Make sure the payload is aligned when using E2-over-802.11 encapsulation,
as enabled by the LINK0 flag.  Fixes PR kern/9700.
2000-04-22 22:36:14 +00:00
augustss
5ea1af4bf4 Regen. 2000-04-22 18:07:19 +00:00
augustss
f468f877de Add some CMedia audio devices. From T.SHIOZAKI <AoiMoe@imou.to> 2000-04-22 17:32:02 +00:00
ragge
11379e0ab6 Add the famous "rl" disk. 2000-04-22 16:46:45 +00:00
augustss
84f24d3c29 The D-link serial adapter lies about being self powered. It's obviously
bus powered.  How can we do power budgeting when the devices lie?
2000-04-21 21:02:44 +00:00
augustss
60bb0d050d Add some comments. 2000-04-21 20:58:56 +00:00
explorer
d592132506 the status register is _always_ at 0x420 -- grr. How should I put this in the config file rather than hard-coded? 2000-04-21 20:13:41 +00:00
augustss
46fb8de93a Use a 255 ms interrupt interval even if the descriptor in the hub asks
for something else, because the spec says that it should be 255.
2000-04-21 19:51:43 +00:00
augustss
6bc85d9fa0 Minor nit: Use another TAB in formatting to make the columns straight. 2000-04-21 19:49:59 +00:00
ragge
171d9f6a3f First version of keep-track-of-used-devices file. 2000-04-21 19:05:43 +00:00
augustss
4379f92630 Make sure to read the full hub descriptor (including the deprecated field). 2000-04-21 18:57:40 +00:00
bouyer
19ada4a82a Snapshot of work in progress: new driver for the NCR 53c8xx SCSI controller
(the name 'siop' is still being discussed, may change).
Only basic disconnect/reselect for now, no sync/wide negotiation.
Tested with 810A, 875 and 895 on i386 only.
The bus-independant part should also be able to handle the 53c720 and 53c770.
A new driver with enhanced script should appear for the 825/875/895 'soon'.
2000-04-21 17:56:58 +00:00
bouyer
cd5411b382 Script assembler for the NCR 53c7xx/8xx scsi controller. Initial work
done by Michael L. Hitch, support for the 8xx and some improvements
by me.
2000-04-21 17:50:07 +00:00
explorer
1118b3ee75 Add driver for Addonics FlexPort 8S (and probably 4S, but not tested) 2000-04-21 17:48:30 +00:00
augustss
3d9d091685 Change the exact sequence of commands when a hub is attached to follow
Windoze more closely.  This makes more devices work.

After two years of doing USB work I've finally access to a USB protocol
analyzer.  Which means I should be able to mimic what Windoze does in
certain cases instead of just following the specs.  Following the specs
is not enough since the devices often don't.
2000-04-21 16:05:50 +00:00
augustss
878deae672 Add a define for some slack port power up time. 2000-04-21 16:01:31 +00:00
augustss
9fb474fcf0 Regen. 2000-04-21 15:59:43 +00:00
augustss
f791a72b9c Change error reporting in port reset function. 2000-04-21 15:58:55 +00:00
augustss
3f08804668 Pretend we know how to turn on port power (it's always on). 2000-04-21 15:40:01 +00:00
augustss
fdeba432d2 Add a comment about a non-obvious use of a #define. 2000-04-21 15:38:55 +00:00
augustss
d744db2ea9 Add D-link serial adapter (made by someone else :). 2000-04-21 15:37:50 +00:00
augustss
e1950d4ffa regen. 2000-04-20 23:40:27 +00:00
augustss
3e4e60beeb Add Zip 250. 2000-04-20 23:39:50 +00:00
thorpej
13c39a5cb6 Put the rasops attributes in conf/files so that everyone can run
config(8) without pulling in files.rasops.  There is prior art for
this, e.g. audio.
2000-04-20 18:23:37 +00:00
nathanw
3e49436f9d Replace rcons console code with rasops console code.
Console text should now be supported on all TGA cards;
8- and 32-bit TGA and 8-bit TGA2 have been tested.

Implement accelerated character drawing, scrolling, and clearing.

Stop clearing "odd" in VHCR; it's unnecessary and hurts performance.

Use bus_space_vaddr() instead of a local hack.
2000-04-20 05:25:20 +00:00
augustss
173c535a95 Add one, remove some. 2000-04-19 16:17:45 +00:00
haya
784977f319 Changes the name of RealTek driver. The new name is `rtk'. This used
to be called `rl' and it conflict with RL vax disks, canonical and
historical unix driver name.

This changes are minimal: it only changes the name of RealTek driver.
The filename of source code and a lot of the letter `rl' in source
files should be changed shortly.
2000-04-19 08:44:31 +00:00
bouyer
5803932005 Regen 2000-04-19 07:52:33 +00:00
bouyer
01beba012a Add some Symbios devices. 2000-04-19 07:51:20 +00:00
enami
a2bf544200 Allocate the variable `inqbuf' in scsi_probedev on stack rather than
statically.  Since this function may called for another luns immediately,
allocating it statically doesn't make sense and may cause race condition
as pointed out by PR#9749.
2000-04-19 04:49:50 +00:00
enami
debe6e88b6 Calculate an offset of mailbox_in correctly by renaming BHA_MBO_OFFSET
to BHA_MBX_OFFSET and using it also for mailbox_in.  Since all mailboxes
should be placed in a single continuous memory due to a hardware limitation,
an offset of any mailbox can be/should be calculated using a same expression.
2000-04-19 02:39:12 +00:00
haya
edfd8044ec Maintenace: add definitions for command status register. 2000-04-19 01:19:04 +00:00
cgd
0d117aa518 regen for changed pcidevs 2000-04-18 16:38:12 +00:00
cgd
88e62f7c84 SiByte, Inc. is vendor 0x166d. 2000-04-18 16:37:00 +00:00
oster
5845348e54 Revert last change (the last change was not necessarily desirable, and
had some other minor side-affects that were troublesome).
2000-04-17 19:35:12 +00:00
cgd
a267efd061 #if 0 the (way bogus) PCI_CLASS_COMMUNICATIONS/PCI_SUBCLASS_BRIDGE_PCI (!!!)
match pointed out (again?) by Johan Danielsson, after i repeatedly told
him not to do something similar in com_cardbus.
2000-04-17 16:45:04 +00:00
joda
5c507c46b5 regen 2000-04-17 12:01:20 +00:00
joda
4f797c7b55 Panasonic KXLC003 2000-04-17 12:00:35 +00:00
joda
7dbedb5a11 rewrite match function to use CIS information 2000-04-17 09:21:59 +00:00
joda
1f1d169e20 extract serial funce 2000-04-17 09:16:38 +00:00
joda
6e5b98b12c add serial funce entry 2000-04-17 09:15:58 +00:00
thorpej
d8bccc7c6e Regen. 2000-04-17 00:26:45 +00:00
thorpej
fcd420cf5d Add product ID for the S3 Trio3D/2X AGP graphics adapter. 2000-04-17 00:26:22 +00:00
pk
0ba1516cd7 Use a default attribute to restore the display mode to original settings.
Also, pass in WSATTR_COLORS at all times when allocating screen attributes
since without it we cannot even get black-on-white from rasops(9).
2000-04-16 21:49:49 +00:00
augustss
876b21e514 Add more items and reorganize. 2000-04-16 18:38:44 +00:00
matt
0aae0cd7a6 only print packets if debug > 1 2000-04-16 17:03:42 +00:00
ragge
9403f3fec8 Reset the device before starting the init sequence.
Add shutdown hook.
2000-04-16 09:55:39 +00:00
oster
c71398f7a9 Don't allow configuration where the specified SectPerSU may result in IO larger
than MAXPHYS being sent to underlying devices.  Addresses PR#9868.
Will change if/when MAXPHYS goes bye-bye.
2000-04-16 03:24:26 +00:00
augustss
6d6ad52fd4 Regen. 2000-04-15 15:57:59 +00:00
augustss
f6b73a654c Add another camera. 2000-04-15 15:57:27 +00:00
veego
8c1897c2fd Also add the Intel ID for the LAN+MODEM56 card to the csdevs list to get
it working.
2000-04-15 06:29:25 +00:00
tsarna
501c07e5d4 Add an "iopener" keymap variant, giving us.iopener and
us.iopener.swapctrlcaps.  This makes F1 ("Back") into Escape, and shifts
the other keys over by one, so F2-F12 ("Forward"-"Home") become F1-F11.
2000-04-14 23:11:08 +00:00
pk
321bc31690 Remove spurious splx() call. 2000-04-14 20:33:48 +00:00
scw
c56f4bceb8 Fix some callout fallout. Hi Jason! 2000-04-14 19:31:50 +00:00
augustss
b6ef06e018 Add a file I forgot. 2000-04-14 18:15:47 +00:00
augustss
2ed37fcf5d Add driver for FTDI FT8U100AX serial adapter.
XXX This is still experimental and needs more work.
2000-04-14 14:51:22 +00:00
augustss
219f3c9ccf More debug. 2000-04-14 14:41:35 +00:00
augustss
1767c08cba Add a capability for pre/post processing on write/read. 2000-04-14 14:21:55 +00:00
augustss
3149043619 Add a driver for the Rio 500 MP3 player.
XXX This driver might go away again, since you can do it all with ugen.
XXX But this driver is compatible with the Linux driver so there are
XXX programs for it.
2000-04-14 14:20:02 +00:00
augustss
0839e2a0d9 Regen. 2000-04-14 14:15:41 +00:00
augustss
471d06cfbc Rename FUTURE to FTDI.
Add the funky little D-Link radio.
2000-04-14 14:14:48 +00:00
augustss
017ca78459 Make attach of ugen work as it should so product&vendor locators can be used. 2000-04-14 14:13:56 +00:00
augustss
e44f0f1147 Support for SIGIO. 2000-04-14 14:12:47 +00:00
augustss
eaaf682603 Fix a typo in a comment. 2000-04-14 14:12:11 +00:00
augustss
e1f94170e5 Generate a diagnistic dump on "Host Controller Halted". 2000-04-14 14:11:36 +00:00
mrg
dfe176302c add some casts to (u_long) to shut up gcc 2000-04-14 08:22:49 +00:00
joda
e3f576a688 disable function after attach 2000-04-13 16:17:55 +00:00
joda
90bee16298 enable com at cardbus 2000-04-13 11:18:24 +00:00
joda
8fba568264 cardbus attachment for com devices (thanks to Chris Demetriou and
Darren Reed for constructive criticism and help with testing)
2000-04-13 11:17:53 +00:00
joda
3692f27c7d regen 2000-04-13 10:13:12 +00:00
joda
69241946d8 add entry for a Xircom modem (as reported by Darren Reed) 2000-04-13 10:12:46 +00:00
joda
81bac16312 add CARDBUS_SUBCLASS_COMMUNICATIONS_SERIAL 2000-04-13 10:11:15 +00:00
scw
d5d6c20e74 Regen 2000-04-12 21:13:12 +00:00
scw
e083abcad8 Add support for the SOHOware PCMCIA Ethernet card, model ND5100-E.
This seems to be a re-badged NDC (National Datacomms. Corp) card.
It needs a quirk entry due to lack of manufacturer tuple in the CIS.
For some reason, the 'Tx/Rx' LED on the connector module is inverted
such that it is off during network activity...
2000-04-12 21:07:55 +00:00
pk
eba24e4799 * Spell shift counts in decimal and masks in hex
* Optimize numerous array references
* Cleanup whitespace turds
2000-04-12 14:22:28 +00:00
itojun
ecb5f2e56a revisit in6_ifattach().
- be persistent on initializing interfaces, even if there's manually-
  assigned linklocal, multicast/whatever initialization is necessary.
- do not cache mac addr in the kernel.  grab mac addr from existing cards
  (this is important when you swap ethernet cards back and forth)
now ppp6 works just fine!

call in6_ifattach() on ATM PVC interface to assign link-local, using
hardware MAC address as seed.

(the change is in sync with kame tree).
2000-04-12 10:36:38 +00:00
haya
21837796b8 Maintenace: add NetBSD tag and correct the name of the auther. 2000-04-11 06:57:59 +00:00
haya
1e921e0bd3 Regen. 2000-04-10 07:46:51 +00:00
haya
e49807d100 Incorporate the changes of RL81x9 driver provided by M. Kanaoka
<kanaoka@ann.hi-ho.ne.jp>.  He separated the driver into IC specific
portion and bus attachment portion and added cardbus attachent.
2000-04-10 07:42:55 +00:00
bouyer
73fe3e3323 Add dependancy to wdc for ata.c, so that 'atapibus at umass' will compile
without wdc or pciide. Closes kern/9842 from Gary Duzan.
2000-04-10 06:43:38 +00:00
chs
8ad280f815 sparc -> __sparc__
sun3 -> __sun3__
2000-04-10 02:16:15 +00:00
augustss
40b25953db Add driver for Prolific PL2301/PL2302 host-to-host adapter. 2000-04-09 18:23:23 +00:00
ragge
d9c7f72cf3 Device driver for the DEC DEBNA/DEBNT/DEBNK ethernet device.
This is for sure the most overkill hardware I've ever seen! For example,
it needs the VAX page tables so that it can access all data structures
and mbufs in virtual memory! It will be a real challenge to make this
device work on mips and Alpha systems :-)
2000-04-09 16:49:57 +00:00
augustss
8fb6cb9b81 Remove usused field. 2000-04-08 20:54:38 +00:00
augustss
2d88a5d886 Regen. 2000-04-08 20:35:13 +00:00
augustss
e75e18b138 Add another ISD IDE adapter. 2000-04-08 20:14:00 +00:00
tsutsui
909b096cf8 Remove #ifdef __NetBSD__ code inside !__NetBSD__ part. 2000-04-08 13:49:43 +00:00
tsutsui
de19673726 Add vaddr_t cast to vtophys() arg. (for powerpc) 2000-04-08 13:44:12 +00:00
tsarna
9964217571 Fix fms_free like auvia_free 2000-04-08 03:50:48 +00:00
tsarna
a1ea15c0e1 Fix auvia_free, clean up more on close, and be more careful in interrupt
handler.
2000-04-08 03:33:58 +00:00
itojun
d65678850d fix build of ucom. (static/non-static) 2000-04-08 01:22:26 +00:00
augustss
ef57f37442 Regen. 2000-04-07 19:00:17 +00:00
augustss
4ca1044eb8 Add Prolific host-host adapter.
I'll write a driver in a few days.
2000-04-07 18:59:58 +00:00
thorpej
0ed7436590 Add a patchable variable `tlp_srom_debug' that enables dumping of
SROM output, etc.
2000-04-07 18:58:15 +00:00
thorpej
4044b5a41c Use separate callouts for motor-on and motor-off. Fixes a condition
where the floppy driver would wedge because a motor-on timeout would
be cancelled by another I/O operation cancelling a motor-off timeout.

From enami tsugutomo <enami@sm.sony.co.jp>.
2000-04-07 16:58:53 +00:00
thorpej
91d6998394 Combine the Alpha, BeBox, and i386 ISA floppy drivers with a sledgehammer.
Not a perfect solution, but this is two less versions of this driver I
now have to modify.
2000-04-07 16:32:03 +00:00
augustss
3b05a69aa2 Remove a couple of Static that shouldn't be there. 2000-04-07 12:40:16 +00:00
augustss
9355847b78 Fix typos in comments. 2000-04-06 23:44:20 +00:00
augustss
af0c0d535a Fix a bug in HID Pop handling. From UCHIYAMA Yasushi. 2000-04-06 22:58:32 +00:00
tsutsui
cae6a3d2a4 Fix bogus byte-swap code in ncr_snooptest().
XXX This snoop test is not needed if ncr had real bus_dma(9) support...
2000-04-06 14:42:06 +00:00
augustss
7859835446 Add another #if NATAPIBUS > 0 in case there is no atapibus attached. 2000-04-06 13:52:04 +00:00
augustss
cf248f12dd Add some, remove some. 2000-04-06 13:33:47 +00:00
augustss
a302716de4 Let the parent device of a ucom decide what size the read and write
buffers should be since it knows about the speed.
Increase the buffer size of uvisor.
XXX The uvisor is still pitifully slow.  There must be a problem somewhere.
2000-04-06 13:32:28 +00:00
haya
7bc5a1ca36 Add CardBus interrupt enable flag. When this flag is asserted, a
CardBus interrupt is routed to the child devices and vice versa.  This
flag is negated when a pccbb receives a suspend or stanby event.
2000-04-06 09:11:57 +00:00
augustss
1acb380bf7 Make it compile without USB_DEBUG. From Chris Jones. 2000-04-05 21:24:11 +00:00
nathanw
bac9153774 Advance index into rasops_cmap for each color, not per triplet.
This makes highlighing and color possible on truecolor displays.
2000-04-05 20:33:28 +00:00
augustss
1b535c32fc Make this driver actually work.
(Noone did any testing for me, so I had to buy a Handspring Visor myself.)
2000-04-05 11:12:48 +00:00
augustss
8b5373dd2e Use reference counting on the softc so detach doesn't blow it away prematurely. 2000-04-05 11:11:33 +00:00
mrg
952f1cf1d0 avoid using uninitalised variables inside WDCDEBUG. 2000-04-05 06:27:36 +00:00
mrg
36b65b7d48 return if we can't map DMA buffers 2000-04-05 05:54:02 +00:00
enami
07702f68a6 Introduce new filesystem type FS_CCD so that an operator can mark the
ccd component partition.  Note that the ccd driver still allows partitions
of any types as components since an on-disk BSD disklabel isn't available
on some port.
2000-04-05 04:03:20 +00:00
mrg
710872c1d0 add "hme at pci" support. 2000-04-05 02:31:19 +00:00
nathanw
2d78be17d1 Fix computation of ri_xorigin in RI_CENTER case; convery from bytes to
pixels, not from bytes to bytes^2/pixel.
2000-04-04 20:59:17 +00:00
augustss
36b5d25ca8 Make protocol message more accurate. 2000-04-04 20:16:47 +00:00
augustss
a94b555441 Put a ratecheck on error messages from the interrupt pipe. 2000-04-04 20:16:19 +00:00
thorpej
5ecdfa3fc0 Rearrange the 21142/21143 SROM/CIS handling code to give it a chance
of working, and last-ditch default to MII-over-SIO with no reset routine
if we don't find an ISV SROM or quirk.
2000-04-04 19:33:21 +00:00
thorpej
5a41b5bf56 - if_tlp_cardbus.c: Use the `pmreg' pointer passed by by
cardbus_get_capability() [mirror change already made to if_tlp_pci.c]
- if_tlp_cardbus.c: If we don't find an ISV SROM, try to grab the
  Ethernet address from the CIS.
- if_tlp_cardbus.c: set CardBus cards to store-and-forward mode from
  the get-go.
- Put the TxThresh tables in tulipvar.h, and use them in the CardBus
  and PCI front-ends to go to store-and-forward mode.
- Document the Xircom X3201-3 clone a little more.
2000-04-04 19:22:50 +00:00
bouyer
77f1e5eb02 Add checks to detect busy-waits, conditionnal on new debug flag
DEBUG_DELAY (0x40). This will print how much time we did loop in wdcwait(),
if we had to read registers more than one time.
2000-04-04 12:43:13 +00:00
bouyer
fcb3e9ddac Better fix to previous: delay(100) before the IDENTIFY, and if it fails
delay(1000000) and retry. The 1s delay is needed for some special case only,
no need to hang the machine for that long everytime (especially for PCMCIA).
2000-04-04 09:25:51 +00:00
joda
d3b06b0596 regen 2000-04-03 15:05:05 +00:00
joda
0caed62b03 add some NVIDIA chipsets 2000-04-03 15:04:42 +00:00
augustss
358b947b7b Correct a typo. 2000-04-03 13:40:05 +00:00
augustss
d063047593 Enable QIC157 command set. Untested. 2000-04-03 12:31:34 +00:00
augustss
dc3ce0b35e Enable UFI protocol. Still untested in NetBSD. Used by, e.g., Y-E Data
floppies.
2000-04-03 12:12:38 +00:00
augustss
b9d50c36a7 Regen. 2000-04-03 12:10:04 +00:00
augustss
e0b4887adf Add more vendors and devices. From FreeBSD and Nick Hibma. 2000-04-03 12:09:43 +00:00
enami
6442efb498 Make this file compiles under some condition:
- #if 0'ed out the umass_reset for now.
- some atapibus specific code is conditionalized by NATAPIBUS.
2000-04-03 03:56:49 +00:00
enami
c560e9a77b When killing pending xfers on device detach, we can't expect scsipi_done
to remove all xfers from the pending queue.  It removes only xfers for
asynchronous transactions.  So, simply loop over all pending xfers
with calling scsipi_done and wait xfers to drain.  Addresses PR#9703.
2000-04-03 03:37:33 +00:00
cgd
1f0de7e7d2 actually put a _comment_ before the second read of the ident register
that Charles added in rev 1.58.  Not only is it good programming practice
to explain magic, but code that looks like:

                reg = pcic_read(h, PCIC_IDENT);
                reg = pcic_read(h, PCIC_IDENT);

is _gonna_ be interpreted as a cut-n-paste error by someone eventually.
2000-04-03 01:55:25 +00:00
enami
ae8fb348b3 Fold long line. 2000-04-03 01:40:51 +00:00
augustss
e126f0d1b3 New and shiny version of the umass driver. This is a port of the new
FreeBSD umass driver by Nick Hibma <n_hibma@freebsd.org> and
MAEKAWA Masahide <bishop@rr.iij4u.or.jp>.
Improvements:
  uses asynchronous USB requests
  supports more transport protocols (Bulk-only and CBI)
  supports more command sets (SCSI and ATAPI)
Tested with Zip100 and Imation Superdisk.
2000-04-02 23:46:53 +00:00
augustss
60057aca5c Allow atapibus to be attached to umass. 2000-04-02 23:40:41 +00:00
augustss
b6cee95eb7 Let the device thet gets an atapibus attached specify how to kill pending
transfers by giving a function pointer.
The old method always called wdc specific code.
2000-04-02 23:38:19 +00:00
mycroft
b1c28384dc If the SROM size is to far out of range, issue a diagnostic and set the size
to 1Kb.  Some boards (e.g. my SMC9332) have a broken MicroWire interface.
2000-04-02 23:38:05 +00:00
augustss
0a425e1f3d Generate an error message if starting a transfer fails. 2000-04-02 21:25:41 +00:00
mycroft
8aeb8df354 Add a flag to tell whether a MAC address was actually found in the CIS.
XXX This whole piece of code should go away ASAP.  We should use a callback
as in the PCMCIA code.  In fact, we should use the PCMCIA code...
2000-04-02 19:11:37 +00:00
thorpej
dc680eb373 Slight correction to last: really only do it if it's a 21142 or 21143. 2000-04-02 19:02:34 +00:00
nathanw
f5b5bbbf21 Add code to read and write bt463-style ramdacs; pick ramdac interface
functions based on type returned from tga_getconf().
Adapt to change in ramdac interface.
Fix race condition in tga_sched_update().
Make tga_sched_update() work before interrupts are enabled.
2000-04-02 19:01:11 +00:00
nathanw
bc3260fcb0 Restore ramdac-type field to TGA configuration structure. 2000-04-02 18:59:32 +00:00
nathanw
c0a4c9e67d Move bt463 code to dev/ic and adapt to the new ramdac interface.
Set default window type to 24-bit truecolor.
Correctly set pseudocolor mode.
2000-04-02 18:57:36 +00:00
nathanw
c66f54d73d Adapt to change in ramdac interface. 2000-04-02 18:55:01 +00:00
nathanw
2b4ac6a7b9 Add ramdac_register() to interface structure. 2000-04-02 18:54:33 +00:00
mycroft
e70fd4b33c During the socket probe, read the ident register twice.
I don't understand why, but sometimes the clone chips in hpcmips boxes read
all-0s the first time.
2000-04-02 18:29:14 +00:00
augustss
7246364f07 With SCSIVERBOSE, only print sense data if there actually is a problem. 2000-04-02 17:58:17 +00:00
augustss
7797648425 Change the initial field in struct ata_atapi_attach and struct scsipi_link
slightly to allow scsibus and atapibus to attach to the same device.
Furthermore, only attach a scsibus when the bus type is BUS_SCSI.
2000-04-02 17:25:52 +00:00
mycroft
229fcf5bbe When using MII on 2114[23] chips, zero the SIA TXRX register to disable the
internal Nway engine.  This fixed a major performance problem.
Thanks to Matt Thomas for pointing this out.
2000-04-02 17:23:33 +00:00
tsutsui
fa07b81e43 Make to match also MII_OUI_DAVICOM.
(This seems to work, but any GENERIC does not have dmphy...)
2000-04-02 03:06:19 +00:00
enami
28d49dce4e Add missing protect from disk interrupt while calling scsipi_free_xs. 2000-04-02 03:05:55 +00:00
itojun
f564201ae9 sync with ata driver change (dma_start args). 2000-04-02 02:07:52 +00:00
bouyer
3b69a8011b make it compile again after ATAPI changes. 2000-04-01 17:52:14 +00:00
bouyer
b2cd1f029a Bump delay() from 100 to 1000000 before attempting a IDENTIFY just after a
reset - solves a problem reported by cpg@aladdin.de.
2000-04-01 14:50:32 +00:00
bouyer
26f6c9a9cf - DMA code cleanup: pciide_dma_finish() doesn't stop/unload the current DMA op
if an IRQ was not detected, unless the force flag was given. Use this to
  detect if the IRQ was for us (closer to shared IRQ for controllers which
  don't have their own IRQ handler in pciide.c) and to poll for DMA xfer.
  Also makes the timeout recovery code simpler.
- ATAPI cleanup: don't call controller-specific functions from atapiconf.c
  (wdc_*), so that it's possible to attach an atapibus to something else
  than a wdc/pciide (Hi Lennart :).
  Overload struct scsi_adapter with struct atapi_adapter, defined
  as struct scsi_adapter + atapi-specific callbacks. scsipi_link still points
  to an scsi_adapter, atapi code casts it to atapi_adapter if needed.
  Move atapi_softc to atapiconf.h so that it can be used by the underlying
  controller code (e.g. atapi_wdc.c).
  Add an atapi-specific callback *atapi_probedev(), which probe a drive
  in a controller-specific way, allocate the sc_link and fills in the
  ataparams if needed. It then calls atapi_probedev() (from atapiconf.c)
  to do the generic initialisations and attach the device.
- While I'm there merge and centralise the state definitions in atavar.h.
  It should now be possible to use a common ata/atapi routine to set the
  drive's modes (will do later).
2000-04-01 14:32:22 +00:00
augustss
7311856f29 Add a delay before reading the number of ports from the controller to
avoid getting 0 from it.
2000-04-01 09:27:35 +00:00
hubertf
ca4c16d936 Note that the Handspring Visor is a Palmpilot compatible PDA. 2000-03-31 13:08:01 +00:00
tsarna
07dea214dc Add auvia, a driver for the integrated AC'97 audio on the VIA VT82C686A
southbridge.

Tested on a ASUS K7M (w/ AD1881 codec). Please report any problems.
2000-03-31 04:45:28 +00:00
oster
cf0b47bd0e Minor cleanup of unneeded verbosity. 2000-03-31 02:05:24 +00:00
oster
cd61979606 Print out the 'root' status of a RAID set during autoconfiguration. 2000-03-31 01:20:43 +00:00
joda
4772fa5b3c regen 2000-03-30 17:35:39 +00:00
joda
4c8aed5893 add the device id for the VIA 686A modem controller, continuing the
trend of mislabelling VIA's south bridges
2000-03-30 17:34:53 +00:00
augustss
d3908431bb Turn on UVISOR_DEBUG with USB_DEBUG. 2000-03-30 17:04:47 +00:00
augustss
e8f6613abe Add driver for the Handspring Visor.
This code probably doesn't work, because it has not been tested.
Despite several pleas for testing there doesn't seem to be any Visor owners
out there.  Perhaps it will get tested if it's in -current?

Anyway, the code can at least serve as a template for how to make a USB driver
that shows up as a tty.
2000-03-30 16:56:19 +00:00
augustss
2c3137dc38 Add forgotten OpenBSD fix. 2000-03-30 16:38:55 +00:00
oster
8d702c4b54 Nuke 'register' from some function prototypes. 2000-03-30 13:39:07 +00:00
augustss
169ac5b3c1 Remove register declarations. 2000-03-30 12:41:09 +00:00
augustss
4fe9287221 Two more OpenBSD fixes. 2000-03-30 08:53:30 +00:00
simonb
5a5c310fae Delete redundant decls of fxp_enable(), fxp_disable() - they're in
i82557var.h.
2000-03-30 02:06:17 +00:00
simonb
9e370d4402 Delete redundant decl of com_attach_subr(), it's in comvar.h. 2000-03-30 02:04:30 +00:00
simonb
b75e08a514 Delete redundant decl of aicattach(), it's in aic6360var.h. 2000-03-30 02:02:53 +00:00
augustss
dd7160dcba Afew more OpenBSD portability fixes. 2000-03-30 00:18:17 +00:00
augustss
fc4d9ff403 Get rid of register declarations. 2000-03-30 00:00:55 +00:00
augustss
c62698f733 Fix a couple of misspelled comments. 2000-03-29 23:16:48 +00:00
augustss
1b57fb1495 Remove some unused prototypes. 2000-03-29 18:55:36 +00:00
augustss
96806cb7ea Fix a buglet. 2000-03-29 18:30:46 +00:00
augustss
a25e27e1eb Some OpenBSD portability fixes. 2000-03-29 18:24:52 +00:00
augustss
356d681927 Add ukactivate&ukdetach so uk devices can be detached. 2000-03-29 18:11:44 +00:00
tsutsui
c693409acb Nuke register declarations. 2000-03-29 13:57:51 +00:00
tsutsui
ac8fa9c43d Remove "register" declaration. 2000-03-29 13:09:02 +00:00
ad
627a9ec886 Spelling error. 2000-03-29 12:02:01 +00:00
simonb
365daa37be Remove redundant decl of cold - it's in <sys/kernel.h>. 2000-03-29 03:59:43 +00:00
simonb
8a447f3757 Remove reduncdant decl of wdc_kill_pending - it's in <dev/ic/wdcvar.h>. 2000-03-29 03:56:53 +00:00
simonb
9ff7681a33 Don't need to include <sys/conf.h> here. 2000-03-29 03:43:31 +00:00
simonb
bfb011b813 Remove duplicate ncr53c9x_dmaselect declaration. 2000-03-29 03:03:28 +00:00
augustss
023c506a5e Take off an item. 2000-03-29 02:17:42 +00:00
augustss
61db1b8e46 *SIGH* Revert back to the old method of aborting xfers.
I had tested the new stuff for two months now, but as soon as I commited
it the problems started to appear.  Murphy, no doubt...
2000-03-29 01:49:13 +00:00
augustss
9a386a047a Do not use all xfers at the same time, this can cause problems in the HC
drivers.
2000-03-29 01:47:25 +00:00
augustss
7e7ceecd2b A first stab at support for isochronous transfers. 2000-03-29 01:46:26 +00:00
augustss
5e754a177b Do not accept new xfers for queuing while a pipe is aborting. 2000-03-29 01:45:20 +00:00
augustss
fc39329153 Change a printf() to a panic() since the kernel is going to die on the next
line anyway.
2000-03-28 17:24:46 +00:00
augustss
f606c26834 Be more defensive in a DIAGNOSTIC test. 2000-03-28 17:07:04 +00:00
augustss
37e4821c88 The list is growing... 2000-03-28 10:54:35 +00:00
augustss
c2f90d0d43 Correct a debug message. 2000-03-28 10:53:59 +00:00
augustss
9609f4caa2 Add a comment. 2000-03-28 09:48:25 +00:00
augustss
3316da3988 Another patch for xfer abort...
XXX The current xfer queueing and aborting semantics should really
XXX be changed.  It cannot be implemented in a sane way on UHCI.
XXX One day when I have lots of time I'll redesign it...
2000-03-28 09:47:10 +00:00
augustss
28a87e2fdb Use default timeout for transfers. 2000-03-27 22:44:01 +00:00
augustss
568b4d8190 Be a little more careful when aborting.
Preallocate some TDs for large buffers.
2000-03-27 22:42:57 +00:00
augustss
8456fa4709 Add a flag for umass debugging. 2000-03-27 22:40:48 +00:00
kleink
ba9bb9dcd5 Cosmetical nit in previous. 2000-03-27 17:00:50 +00:00
ad
2030c2a75a Regen. 2000-03-27 16:56:27 +00:00
ad
9bdb74bc42 Add a couple of DPT devices. 2000-03-27 16:55:43 +00:00
onoe
6daecf7901 Fix multicast filter to set IFF_ALLMULTI flag properly. Also clear
unused group address from filter.
2000-03-27 12:58:01 +00:00
onoe
720e17c11e Do not try to lock out MAC until the firmware correctly start up, to avoid
"awi: failed to lock interrupt" message when IRQ are shared with other
devices [PR kern/9660]
2000-03-27 12:54:59 +00:00
onoe
ab9d324f37 backout changes between 1.10 and 1.12 to re-enable awictl stuff.
Actually, it is partially duplicated with SIOC[GS]IFMEDIA and
SIOC[GS]80211NWID ioctls currently supported.  But I'd like to leave it
until configuration interface for common 802.11 stuff will be cleaned up.
2000-03-27 12:52:45 +00:00
augustss
fc72e72d7d Change (almost) all static to Static. The symbol `Static' can then be defined
to `' or `static' depending on if you want to debug or not.
2000-03-27 12:33:53 +00:00
augustss
439812ba3b In attach message, spell it "target" not "targ", as in the locator. 2000-03-27 11:45:42 +00:00
enami
c522067861 Maintain IFF_ALLMULTI flag by ourself. 2000-03-27 11:03:47 +00:00
augustss
2341e5679e Don't mess with QH in bulk abort for the moment. 2000-03-27 09:41:36 +00:00
augustss
8e7f7d2d69 Keep free block statistics. 2000-03-27 08:27:03 +00:00
augustss
9e5b3b729c Remove some debug nonsense. 2000-03-27 08:01:09 +00:00
augustss
9ffe849791 Make it compile without DIAGNOSTIC. 2000-03-27 07:39:48 +00:00
enami
8d29747e3b When we fall into allmulti case due to too may multicast address,
properly set the type and length in struct wi_ltv_mcast.
2000-03-27 07:04:21 +00:00
enami
19e7b1b8ae No need to call wi_setmulti() if ether_{add,del}multi returns 0. 2000-03-27 06:48:05 +00:00
oster
d0c76be757 cleanup function prototypes. 2000-03-27 03:25:17 +00:00
oster
b97e06092d Shuffle some prototypes to a more appropriate location. 2000-03-27 03:01:33 +00:00
oster
2ee63332b3 Add bits for eventual support of deleteing components and moving
hot-spares into the main set.
2000-03-26 22:38:28 +00:00
augustss
a52e96b1eb Fix typo. Found by Aaron Campbell <aaron@cs.dal.ca>. 2000-03-26 21:42:54 +00:00
kleink
230876cf26 Merge parts of chs-ubc2 into the trunk:
* Remove the casts to vaddr_t from the round_page() and trunc_page() macros to
  make them type-generic, which is necessary i.e. to operate on file offsets
  without truncating them.
* In due course, cast pointer arguments to these macros to an appropriate
  integral type (paddr_t, vaddr_t).

Originally done by Chuck Silvers, updated by myself.
2000-03-26 20:42:21 +00:00
kleink
8abfe24915 Cast timeval members to types we know the printf conversions of. 2000-03-26 20:24:12 +00:00
augustss
a9643a2075 Regen & adjust name. 2000-03-26 15:08:43 +00:00
augustss
59310c8294 Adjust the name of the Kawasaki Ethernet adapter. 2000-03-26 15:08:02 +00:00
ragge
30819cb81c Bus_dma'ify the KDB50 driver, and make it work. 2000-03-26 11:45:04 +00:00
ragge
fc55ca0933 Allow 16 fragments for MSCP DMA. 2000-03-26 11:37:55 +00:00
soren
7b737d77b3 For Cobalt Networks 21143's, always use store-and-forward and toggle
a GPIO line to fully reset the PHY.
2000-03-26 10:53:39 +00:00
itojun
240cf24ebd regen (sorry forgot to do separate commit for them) 2000-03-26 10:31:19 +00:00
itojun
74846d31f5 add CIS for Corega Wireless LAN PCC-11 (no driver support yet) 2000-03-26 10:24:51 +00:00
itojun
130ac9eafe don't call if_deactivate with NULL ifp.
sc->sc_ifp can be NULL if awi_pcmcia_attach() fails, so you will see panic
if you remove a card which fails on attach.
2000-03-26 10:09:33 +00:00
augustss
5b99967f1d Avoid a pointless debug message. 2000-03-26 10:01:32 +00:00
bouyer
ff2eb3a510 Remove unneeded assignement to nblks 2000-03-25 21:37:51 +00:00
fvdl
aa0f78b2f6 We can use openings = 16 here; this won't even exhaust the number of
allocated SCBs for 16 targets, and it's a noticeable difference.
2000-03-25 21:09:08 +00:00
mycroft
528bd4a794 Move esp declaration to conf/files. 2000-03-25 19:58:04 +00:00
fvdl
97688d9a83 Do simple tagged queueing, enabled by default. 2000-03-25 19:52:12 +00:00
augustss
5018b862c1 Remove one, add one. 2000-03-25 18:12:20 +00:00
augustss
3fded57690 Rename and move around callout handles to make it more sane.
Add some DIAGNOSTIC.
Fix buglet in isoc abort on UHCI.
2000-03-25 18:02:32 +00:00
augustss
b7eeb17414 Change the test for cold boot slightly to avoid a long busy wait with UHCI. 2000-03-25 17:59:34 +00:00
augustss
34bd644399 The Wacom CT0405U delivers strings, but they are wrong. Don't use them. 2000-03-25 17:30:00 +00:00