Commit Graph

14471 Commits

Author SHA1 Message Date
jmc 9980e6b848 Updates 2002-12-19 07:22:40 +00:00
jmc 092fe54e3d Add additional debugging for fwohci_arrq_input: no listener conditions 2002-12-19 02:15:31 +00:00
martin 324c47457d Since we have to select one of the two possible PHYs when configuring
the MIF Configuration Register PHY_Select, there is no use in pretending
we could talk to both at the MII interface layer.

If both PHY are reported to be present, prefer the external one.

Remember this selection and enforce it in hme_mii_{read,write}reg.
This fixes problems with one of the dual hmes in Netra T1s.

From OpenBSD.
2002-12-18 23:13:02 +00:00
tron c4b584f5c4 Use "NULL" instead of "0" in pointer checks. 2002-12-18 14:12:33 +00:00
jmc 62da7b9c60 Add SBP2_MAXPHYS 2002-12-18 06:08:21 +00:00
jmc fe19747374 Redo state handling as ack's, status, etc can come in and be processed in
various orders depending how the upper level driver is flushing it's queue's.
This prevents the deadlocks I was seeing before with >8k writes.

XXX: Still not completely there as > 64k copies trigger bugs and the page
table support still needs to be written to break those down.
2002-12-18 04:48:33 +00:00
pk 456e1ad2d2 Establish high-level interrupt with IPL_SERIAL. 2002-12-17 08:32:12 +00:00
elric 0e1a1badc4 Memset disklabel area to zero before beginning when constructing default
labels.  Problem noticed and tested by dan@.
2002-12-17 01:55:44 +00:00
fvdl f11e75d5f6 Remove comparison of u_int8_t value to (512 - a few bytes), since it's
always false. As found by gcc-current.
2002-12-16 18:27:20 +00:00
jmcneill ee462f15e8 Another sizeof -> 4 + 2048 fix for dvd_read_manufact after malloc changes 2002-12-15 17:48:14 +00:00
jmcneill 675603655c In dvd_read_disckey, sizeof(buf) is no longer '4 + 2048' after the
malloc change. Replace 'sizeof(buf)' with '4 + 2048' -- this makes
dvd_read_disckey work properly again.
2002-12-15 17:43:50 +00:00
takemura 564a7fd556 Changed SCALE value from (1024*1024) to (1024*256) to support large (1024<)
sample values.
2002-12-15 09:17:07 +00:00
fvdl 74fe783bef Avoid using a lot of kernel stack. 2002-12-15 01:56:02 +00:00
fvdl 530a60a1e0 Don't waste too much kernel stack space on (infrequent) ioctl operations,
use malloc instead for temp space.
2002-12-15 01:55:44 +00:00
pooka a2e85e2b1c Silly me for assuming that the CT5880 cards could be identified by looking
at which ones had the Product ID CT5880. Try to get the checks right now.

Also add ES1373_8 to the list.
2002-12-14 17:52:47 +00:00
christos fa65bb7322 Add /dev/twex support. To be used with FreeBSD's 3dmd.
Initial port from Masaru OKI <oki@netbsd.org>, with KNF, memory leak fixes,
denial of service problems, and null pointer fixes from me.
2002-12-13 23:31:32 +00:00
scw 173ca7d4d0 Add support for i830/i845 agp. From Shingo WATANABE (on tech-x11) and
FreeBSD, with cleanup/KNF by me.

Note: These chipsets are not well supported by the i810 driver in
NetBSD's in-tree xsrc (based on XFree86 4.2.1 at this time). However,
the driver works perfectly using bleeding-edge XFree86-current on my
Omnibook's i830MG with these agp changes.
2002-12-13 11:32:50 +00:00
jmc e627b7fefc Improve performance with disks almost 60x by redoing the callback handler to
accept ranges as well as single addresses. Still need to go through any key
areas and remove the malloc's and replace these with some sort of pooling
instead.
2002-12-13 07:47:52 +00:00
jdolecek 9cdaccbbdd regen: add Madge Networks Smart 16/4 PCI Ringnode Mk2 entry 2002-12-11 21:35:19 +00:00
jdolecek 62c201e271 add Madge Smart 16/4 PCI Ringnode Mk2 entry 2002-12-11 21:34:36 +00:00
atatat 944cb6f8ff Add /* MEMORY_DISK_SERVER */ comments to the #endifs to match the #ifdefs. 2002-12-11 16:24:38 +00:00
ad 42c8a17c80 Fix typo. 2002-12-11 13:02:31 +00:00
junyoung 65ce86ee32 '.' was missing in license notice. 2002-12-11 05:49:34 +00:00
bouyer e69ba7cb79 Commit patch I sent to tech-net on 29/09/2002:
The driver puts the adapter in promisc mode to receive multicast addresses.
At last set the IFF_PROMISC flag so that the upper layer filters frames
that are not for us.
Sure, the real fix would be to get multicast filters working ...
2002-12-10 21:50:32 +00:00
fvdl e718b57a20 Silence strict-alias warning. 2002-12-10 20:56:30 +00:00
fvdl c21b595185 Use 0xff as the 'unknown processor type' (which is what Linux does). 2002-12-10 20:06:43 +00:00
toshii cf41cc5294 Add a couple of le32toh which were missing in the previous.
Pointed out by SOMEYA Yoshihiko.
2002-12-10 14:07:37 +00:00
pk 725a6aebf7 Remove the `flags' argument from bus_intr_establish(). 2002-12-10 13:44:47 +00:00
itohy 32c9c7f1cc Add WSKBD_TYPE_MAPLE and WSMOUSE_TYPE_MAPLE for Dreamcast Maple bus devices. 2002-12-10 13:05:09 +00:00
pk db6d8afe02 bus_intr_establish() signature change.
The additional `fast trap' argument is ignored in these drivers.
2002-12-10 12:21:02 +00:00
pk 7007959dc1 Switch to softintr(9). 2002-12-10 12:17:35 +00:00
rafal 3171f081c8 Make this work on fast platforms by making sure signals are held for at
least 1us.  Documentation I've found for the simple (SPP) parallel port
mode says that data should be stable 500ns before STROBE, STROBE should
be pulsed for no less than 500ns, and that data should be stable another
500ns after STROBE has been de-asserted.

Makes lpt@ebus on my Sun Ultra5 work with my HP DeskJet 712C, at least in
polled mode.  Thanks to Martin for astutely noting it was probably a bug
with STROBE being pulsed too quickly.
2002-12-10 07:19:25 +00:00
hamajima 764daa3585 turn off light of LCD, when I closed cover 2002-12-10 06:18:07 +00:00
thorpej f09fc7f074 Don't include <i386/isa/icu.h> 2002-12-10 05:05:11 +00:00
thorpej 9004406585 Error out if we get an unexpected buffer type. 2002-12-10 01:09:09 +00:00
jmc 0215635717 Checkpoint commit:
1. Reduce debugging level to sane levels
2. Fix bugs in alloc_data_map related to allocing whole bytes of bitmap at
a time.

At this point the driver is functional. It talks to a local drive here and
can label/newfs. Performance is...lacking at the moment as its chewing cpu
heavily (probably due to the number of memcpy's) and will be the next area
attacked.
2002-12-09 23:42:53 +00:00
jmc 151668ce8d Drop default debugging level to something a bit more sane 2002-12-09 23:39:18 +00:00
jmc 33736c059a Ooops...Make sure for status to set error and resid before calling the
completion routines. Makes reads actually return data to userland now which
means I can now put a disklabel on the drive.
2002-12-09 22:28:21 +00:00
ad 318c4b22be Fix LP64 issues. 2002-12-09 15:24:28 +00:00
scw 95bf009dca s/walnut/evbppc/ 2002-12-09 12:56:15 +00:00
jmc 4d74b607a2 Restructure how the at_output dma map gets setup. Ask for a dma map that can
support up to the max ohci descriptor segments. Then attempt to fill it in
via a load. Use the number of segments filled in as the basis for figuring
out how many descriptors to supply to the ohci DMA engine.

XXX: Still needs to account for requests which because of splits may overflow
the 6 dma descriptors available today. For now this fixes cases where a
single 512 byte write was getting split into 2 dma segments from 1 incoming
iov request
2002-12-09 09:09:54 +00:00
jmc 2a3e786250 Fix fwohci_write's sanity check against large packets. Max rec is only used
when writing directly to the device (ala IEEE1394_TCODE_WRITE_REQ_BLOCK).
Otherwise the largest size is determined strictly by speed
2002-12-09 07:26:02 +00:00
jmc 11b3f4e7d1 Provide a macro for turning a speed number into a max rec value 2002-12-09 07:24:57 +00:00
jmc 3d5ded55c7 Write sbp2_free_data_mapping and fix a bug where read responses weren't sending
back the right tlabel
2002-12-09 07:23:43 +00:00
jmc 1f133763ba Don't need sbp2_datamapping. Each one is tracked via the associated orb 2002-12-09 07:23:24 +00:00
jmc 9bea8ca9b7 Fix logic screwup in determining which bits to set in alloc'ing data maps 2002-12-08 05:59:05 +00:00
jmc 29a7ff6364 Put back MSG_IDENTIFY_LUNMASK (renamed to just be within the IHA namespace.
The definitions were not the same between the scsi_messages file and this
definition so simply removing it here and letting the other one be used
results in incorrect behavior (regardless of whether it made the code
compile....)
2002-12-08 01:09:34 +00:00
ad 59773dea2e Implement the DPT EATA ioctl() interface. 2002-12-07 19:48:30 +00:00
tsutsui d3fc98adb8 Remove local definition of MSG_IDENTIFY_LUNMASK, which is now defined in
MI dev/scsipi/scsi_message.h. Fixes kern/19313 from Lubomir Sedlacik.
2002-12-07 10:19:31 +00:00
toshii 21318640e1 Update xfer->frlengths for input isoc transfer. Based on patches from
SOMEYA Yoshihiko.
Also fix error handling for isoc transfer somewhat; usb_transfer_complete
shouldn't be called for more than once.
2002-12-07 07:33:20 +00:00
toshii 44f269f8ff Fix several nits. Mostly from SOMEYA Yoshihiko.
- Call usbd_transfer_complete at splusb.
- Fix a botched for loop in ohci_rem_ed.
- In ohci_close_pipe, wait 1ms after removing an ED to avoid possible race
 condition.
2002-12-07 07:14:28 +00:00
toshii 384b45d203 Remove junk at the end of a DPRINTF. From SOMEYA Yoshihiko. 2002-12-07 06:52:11 +00:00
ichiro 170528a210 delete definition of STAILQ_ENTRY
previous defined sys/sys/queue.h
2002-12-07 01:40:24 +00:00
fvdl bc4bea2904 Remove duplicate define that crept in. 2002-12-06 23:04:16 +00:00
fvdl bcceca7072 Sync this with the FreeBSD version, adding a few aliases and new definitions. 2002-12-06 22:46:34 +00:00
drochner 10e96d1336 typo in comment 2002-12-06 14:05:34 +00:00
ad 57d787eeac - Handle DPT ioctls from native NetBSD binaries.
- SCSI targets could disapper mid-way through autoconfig if the board
  notifed us of a changed LCT at the wrong time. Fix that.
2002-12-06 11:22:25 +00:00
erh 6278998229 kern/12837: Provide a way to get working devices that violate the usb spec by
returning a non-matching CSW tag.
Defined a quirk for this and set it for Scanlogic SL11R, which gets my
NEO Jukebox working.
2002-12-06 03:57:51 +00:00
jmc 5a69251dd8 Account for corner cases better in alloc_data_mapping and only ask for a 16s
reconnect time instead of 2^16s
2002-12-06 02:19:34 +00:00
jmc 9e81590397 Fill in sc1394_node_id after a self id cycle 2002-12-06 02:17:30 +00:00
jmc 9a4d03f9b2 Add a def for a smaller reconnect time that will be used by default 2002-12-06 02:14:59 +00:00
agc ecc0017939 Cast appropriately so that this compiles on sparc, sparc64, macppc etc. 2002-12-05 12:22:37 +00:00
pooka 98539df1fe Recognize a few more CT5880 chips. Only cosmetic, does not
affect functionality.
2002-12-05 11:26:26 +00:00
jdolecek 661f8e80e2 Add NOLUNS|NOSYNC quirk for NEC CD-ROM DRIVE:222.
Change sent in PR kern/19286 by Dave Barnes.
2002-12-05 10:39:58 +00:00
ichiro f11d642c88 make compile 2002-12-05 09:21:26 +00:00
jdolecek 1a82d4f05f regen - addition of 0x90EE, IBM SVGA Adapter/A 2002-12-04 18:53:14 +00:00
jdolecek 53ba962fcf add 0x90EE - IBM SVGA Adapter/A 2002-12-04 18:52:28 +00:00
haya 805040f592 New Feature: add pseudo device for IEEE 1394 isochronous stream and
isochronous reception routine for IEEE 1394 OHCI (fwohci).  The
transmission part is under construction.

The minimum configuration options for this feature are:

# IEEE 1394 (i.LINK)
fwohci*	at pci? dev ? function ?
pseudo-device	fwiso		1
2002-12-04 00:28:39 +00:00
itojun 909d6f1e41 regen 2002-12-03 09:27:20 +00:00
itojun b1780a969c fujitsu AH-F401U AirH" USB
(128K PPP device/should be attached as ucom, but not yet)
2002-12-03 09:27:00 +00:00
explorer 4c21f28434 make this compile without SBP2_DEBUG defined 2002-12-03 06:11:31 +00:00
explorer eefd3c78e8 add Ricoh 5C552 Cardbus + Firewire product ID 2002-12-03 06:08:00 +00:00
toshii 350768d9f8 Don't stuff extra data when we receive data less than expected.
This situation is normal for asynchronous sources, and the byte stuffing
algorithm used generates unpleasant noise.
Also take care of scattered data buffer and do memcpy correctly.

This should fix PR kern/16385.
2002-12-02 02:36:14 +00:00
jmc bd096e500d Set the only big quirk since the drives I've tried return errors on 6 byte cdbs 2002-12-01 12:12:09 +00:00
jmc 4e448779d8 Checkpoint checkin:
1. Clean up some debugging and trigger some on only extreme debugging needs
2. Comment alloc data mapping a bit better and fix some of the bugs here
(note..there still are some so for now the free method is never called while
I track these down)
3. Fix the copying logic in data_resp. It was calculating negative offsets
which blew up memcpy.

At this point I can probe, inquire and get through the findroot steps of a
boot:

sd0 at scsibus0 target 0 lun 0: <Maxtor, 1394 storage, 60> disk fixed
sd0: mode sense (4) returned nonsense; using fictitious geometry
sd0: 76293 MB, 76293 cyl, 64 head, 32 sec, 512 bytes/sect x 156250000 sectors
sd0: mode sense (4) returned nonsense; using fictitious geometry
sd0: no disk label
findroot: can't open dev sd0a (6)

NOTE: This will panic my machine right now with a simple disklabel -r sd0.
Also, since the free mappings routines are if (0)'d out at the moment do not
use this code for anything except experiments and then only on a machine
you don't mind panic'ing.

Fixing the mapping routines will be the next step and then finally chasing
down the proper mode sense these drives understand.
2002-12-01 12:09:56 +00:00
jmc 3b7f83f77f Correct calculating of offsets when memcpy returned data. 2002-12-01 12:05:11 +00:00
isaki c3d95a36c4 add bmd, memory disk driver for x68k. 2002-12-01 09:03:03 +00:00
tsutsui 9604e7689d More cleanup of MI mb86960 driver:
- Add support for byte system bus mode. Based on patch in kern/17193 by
  Christian Groessler, with some improvements by me.
- Rename sc_flags in mb86960_softc to sc_stat, rename "type" to sc_flags
  to specify controller quirks and remove enum mb86960_type.
- Pass controller type via new sc_flags in mb86960_softc rather than
  via an mb86960_attach() arg.
- Handle unaligned mbufs properly in mb86960_write_mbufs(). (from ne2000.c)
- Fix a signed/unsigned comparision warning.
- Add definitions of status bits in the RX packed header.
- Change types of some members in mb86960_softc.
2002-11-30 14:15:10 +00:00
jmc 1f366747d4 Tidy up some debug routines and make verbose packet dumps only when sbp2debug>2 2002-11-30 06:18:54 +00:00
jmc 88fe775d19 Print out some more details from incoming packets (tlabel's).
Also, when receiving a write packet, respond with a proper ack if something
was available to process it. (Fixes most of the sbp2 random hangs)
2002-11-30 06:09:42 +00:00
pooka fa8ee3bb1c Don't use tsleep() in attach, use delay()
This change makes the driver work properly for the following card,
which used to function a bit weird:

eap0 at pci0 dev 10 function 0: Ensoniq CT5880 CT5880C (rev. 0x02)
eap0: interrupting at irq 9
eap0: TriTech TR28602 codec; no 3D stereo
2002-11-30 00:20:02 +00:00
hamajima 02e91ee75e add Sigmarion2. it is same keymap of Sigmarion. 2002-11-28 15:09:48 +00:00
gehenna 1b8f0943e1 EasyDisk and Solid state disk like PQUIRK_NOMODESENSE. 2002-11-28 10:08:28 +00:00
gehenna b69718e434 Regen. 2002-11-28 10:05:58 +00:00
gehenna e2b8ef4c4e add OTI Solid state disk 2002-11-28 10:04:39 +00:00
junyoung 3bfa71c0c3 Fix compile error. 2002-11-28 07:02:20 +00:00
simonb 9bc5fa88bb In configure_bus() return early if there are no devices on the bus to
configure.
2002-11-27 02:53:10 +00:00
lukem 0635de35a3 Remove KDIR=, since SYS_INCLUDE=symlinks and KDIR are not supported any more. 2002-11-26 23:30:07 +00:00
christos 514f7047e4 si_ -> sel_ 2002-11-26 18:49:40 +00:00
thorpej e99463aee0 Regen: Add IBM 133 PCI-X Bridge. 2002-11-26 18:13:29 +00:00
thorpej 83e0125ae2 Add IBM 133 PCI-X Bridge. 2002-11-26 18:12:27 +00:00
thorpej 59b5e4748c Regen: Add Intel i80321 I/O Processor. 2002-11-26 18:10:10 +00:00
thorpej 32c4000a56 Add Intel i80321 I/O processor. 2002-11-26 18:09:27 +00:00
fvdl 85bb01d1f3 Add a comment marking this file as broken on most non-i386 -- vtophys usage. 2002-11-26 03:25:51 +00:00
martin 01740de795 Remove assumptions about endianess of bus_space_vaddr mappings, replace
with an explicit probe.
2002-11-25 21:24:28 +00:00
fvdl c858fe312c Add 'U' to 16-bit hex constants to stop gcc 3.3 from complaining. Shouldn't
really be needed, but.. (from scw and thorpej).
2002-11-25 20:49:55 +00:00
fvdl f870e5db60 #if 0 out unused static arrays to pacify gcc 3.3 2002-11-25 20:43:44 +00:00
fvdl a06b80d60e Actually, back out previous. Better have it not compile on LP64 to show
that it's broken for that case.
2002-11-25 20:29:14 +00:00
fvdl 2b98828aef Add some hideous casts to get this to compile on LP64. Doesn't look like
it has a chance of working, though.
2002-11-25 20:24:08 +00:00
tsutsui 41f0cf8abc - Remove code to map PCI_MAPREG_TYPE_MEM, which is not supported by 53c974.
- Print PCI devinfo in the attachment message.
2002-11-25 13:41:35 +00:00
thorpej d94a4ac49e Avoid strict-alias warnings. 2002-11-25 07:47:53 +00:00
thorpej 7c2e6f52c6 Avoid some "comparison always false" warnings by only compiling
the code in question if ULONG_MAX > 0xffffffff.
2002-11-25 05:25:00 +00:00
thorpej d32a923263 Avoid strict-alias warnings. 2002-11-25 02:31:14 +00:00
thorpej c23c86e36b Add ULL to 64-bit integer constants. 2002-11-25 02:30:38 +00:00
thorpej de5b141b6a Avoid strict-alias warnings. 2002-11-25 02:28:56 +00:00
thorpej f5a27686e2 Fix a strict-alias problem uncovered by GCC 3.3. 2002-11-25 02:23:17 +00:00
thorpej 0ea203767c Add ULL to 64-bit integer constants. 2002-11-25 02:16:50 +00:00
thorpej b409a344b5 Avoid strict-alias warnings. 2002-11-25 01:44:21 +00:00
thorpej 0739364536 Avoid a strict-alias warning. 2002-11-25 01:43:09 +00:00
fvdl 77decc8b5a Avoid uninitialized var usage in detach. 2002-11-25 00:51:33 +00:00
fvdl 90dbf6a726 Need <sys/device.h>; on a lot of platforms it's probably included
indirectly, but not on some others.
2002-11-25 00:49:52 +00:00
scw 5b10944d66 Fix uninitialised variable warnings. 2002-11-24 12:06:12 +00:00
scw 7a4dfd98e4 Quell an uninitialised variable warning. 2002-11-24 11:52:13 +00:00
takemura fe56c2b22a 3.3V support for Ricoh 5C[23]96 parts from ngc@ff.iij4u.or.jp.
Preliminary bridge identification code from imp@village.org.
2002-11-24 02:46:55 +00:00
oster 93e77ce121 Nuke all (but one) of the remaining RF_UTILITY's. 2002-11-23 02:44:14 +00:00
oster ceb8b43d54 Nuke some #if 0'ed code. 2002-11-23 02:38:59 +00:00
oster d8bae03774 One less goto. 2002-11-23 01:59:59 +00:00
oster a14698a359 Bye-bye to the completely unused reconCtrlPtr->priorityList. 2002-11-23 01:58:18 +00:00
oster 540f566858 rf_SelectMirrorDiskPartition() is only needed in a few cases. #if it
out in the rest.  Thanks to Krister!
2002-11-22 20:56:10 +00:00
jmc 1db8069fe5 First pass (checkpoint checkin) for firewire scsi code.
There are a number of issues here for anyone trying to use this today:

1. On my test drive the command engine on the drive seems to stall after the
   inquire is done. So the mode sense times out for a long time before
   aborting. This obviously needs to be tracked down and fixed.

   However it does do a proper inquire:

scsibus0 at sbpscsi0: 1 target, 1 lun per target
sd0 at scsibus0 target 0 lun 0: <Maxtor, 1394 storage, 60> disk fixed

2. This code is quite ugly in places as debug code was added to test things.
   Definitly needs cleanup/documention in places where it's using command
   structures. The structure for alloc'ing orbs, running them through the
   command engine and getting state back is mostly set but implementation needs
   an overhaul in places.

3. For testing I use the following config options:

fwohci* at cardbus? dev ? function ?    # IEEE1394 Controller
fw*     at fwbus?
options FW_DEBUG
options FWNODE_DEBUG
options P1212_DEBUG
options SBP2_DEBUG
options SBPSCSI_DEBUG
fwnode* at fwbus?
sbpscsi* at fwnode?
scsibus* at sbpscsi?
2002-11-22 16:28:54 +00:00
jmc 77b603bc96 Change structure/usage of interface provided callbacks. (read, write, reset)
Push these up to the ieee1394 softc level and make the naming scheme
consistant.
2002-11-22 16:20:17 +00:00
oster 9768cda12b Fix up locking on a call to rf_update_component_labels().
Noticed by Manuel.  Thanks Manuel!
2002-11-21 15:37:55 +00:00
bouyer 59fc067cf7 For sis_setup_channel, acer_setup_channel, hpt_setup_channel,
pdc202xx_setup_channel, pdc20268_setup_channel:
Properly compute the address of the DMA control register for channel 1.
I think the controllers ignore these bits, I suspect it's only there so that
the BIOS can tell the OS is has configured DMA, but better be correct.
Thanks to Alexander Yurchenko for pointing this out.
2002-11-20 19:20:24 +00:00
martin 9b7331f3f2 Add a comment describing why ehci_dump() has been added back despite
not being referenced.
Suggested by Perry E. Metzger.
2002-11-19 19:18:09 +00:00
christos f8dc23efb1 regen 2002-11-19 15:06:37 +00:00
christos 70d7b58096 add another GVC modem 2002-11-19 15:06:05 +00:00
bsh 060f32c803 Regen. for additional vendor IDs for Samsung Electronics Co. Ltd. 2002-11-19 06:52:07 +00:00
bsh 98338f0df2 Two more vendor IDs for Samsung Electronics Co. Ltd. 2002-11-19 06:47:24 +00:00
oster 58ac277dd0 #if out some stuff that's only used for some distributed sparing stuff.
Shaves another 500 bytes from an i386 kernel.
2002-11-19 01:49:41 +00:00
oster 6ac4a184c4 For reconstructs, move checks for failed components to before the
kernel threads are created.
2002-11-19 01:45:28 +00:00
oster 61c0bdf3d3 #if 0 an unused function. Noted by Krister. Thanks! 2002-11-18 23:50:47 +00:00
oster b43d46d578 rf_DiskReadMirrorPartitionFunc() is only needed for some of the clustering
stuff, or if we're doing DAG validation.  Thanks to Krister!
2002-11-18 23:46:28 +00:00
dyoung 1b3451a594 Only Prism is known to support WI_RID_FRAG_THRESH. 2002-11-18 15:10:22 +00:00
chs 4153f58dfe move initialization of iobase to before we first use it. 2002-11-17 22:49:56 +00:00
oster 7a58f70fb2 When setting root or autoconfig status, be sure to update used_spares too! 2002-11-17 22:41:36 +00:00
itohy ee6a196208 Add dreamcast specific device names 2002-11-17 05:56:12 +00:00
oster 0cfd5a5b13 Cleanup more printfs. 2002-11-16 16:59:58 +00:00
oster c00752f98a Clean up error reporting, and nuke some printf verbosity. 2002-11-16 16:49:46 +00:00
tsutsui 435b887237 Regen: Add SMC 9232DST Ether 10/100 Fast Ethernet EISA Adapter. 2002-11-16 10:04:19 +00:00
tsutsui 396a6a2863 Add SMC 9232DST Ether 10/100 Fast Ethernet EISA Adapter. 2002-11-16 10:03:32 +00:00
mrg 20998b4001 vnd.c
- allow vnddetach() to return EBUSY if any vnd's are currently initialised.
lkm:
- add new 'dev' directory, initially with just a 'vnd' LKM.  for now, the
vnd lkm driver requests 4 devices....

XXX: vnd should be converted to a psuedo-device that creates & deletes
instances of itself (vnd0, vnd1, etc) when vnconfig -c/-u are called,
then the vnd lkm driver can not be limited to '4' by default.
2002-11-16 08:10:48 +00:00
dyoung 3a04dc2907 In wi_get_cfg, factor the code for getting the tx rate with the
IEEE 802.11 subsystem.

In wi_write_txrate, document the clever code for computing
WI_RID_TX_RATE from a bit rate.
2002-11-16 06:25:05 +00:00
dyoung f675f5f8b5 Support two new RIDs.
WI_RID_DBM_ADJUST: In preparation for capturing Prism packets
  containing received signal strength indications (RSSI), read the
  constant for conversion from RSSI to dBm (decibels relative to
  a milliwatt).

  WI_RID_FRAG_THRESH: Get/set the packet fragmentation threshold
  on Lucent/Prism.
2002-11-16 06:02:53 +00:00
tsutsui 6cbc642fdf Regen from pcidevs rev 1.486:
> Remove an entry for AMD PCNETS_PCI.
>
> AMD Am79C974 PCnet-SCSI Ethernet and SCSI conrtoller is
> a multi-function PCI device which has two device IDs
> of Am53C974(PCscsi-PCI) and Am79C970(PCnet-PCI),
> and there is no its own ID.
2002-11-15 22:20:02 +00:00
tsutsui 1d4122d78d Remove an entry for AMD PCNETS_PCI.
AMD Am79C974 PCnet-SCSI Ethernet and SCSI conrtoller is
a multi-function PCI device which has two device IDs
of Am53C974(PCscsi-PCI) and Am79C970(PCnet-PCI),
and there is no its own ID.
2002-11-15 22:13:11 +00:00
itojun 69a2421a71 typo 2002-11-15 17:51:33 +00:00
ad 5a728ace12 Changes for SMBus/I2C:
- Move lm_readreg/lm_writereg into the front-ends. Add/use function pointers
  in the softc.
- Add a bank select function pointer to the softc and provide a generic
  version. WinBond chips accessed over serial bus present three addresses,
  two of which are used to access bank 1/2 registers.
- Mark TSENS2/3 sensor data as invalid if the the corresponding bank select
  fails.
2002-11-15 14:55:41 +00:00
ad 122b0bd68f Cosmetic changes. 2002-11-15 13:51:29 +00:00
ad c69a4b471a Regen. 2002-11-15 13:49:28 +00:00
ad 0c39c2396f Remove dup product. 2002-11-15 13:41:27 +00:00
oster ad8fd01bdf After a rebuild-in-place, a reconstruct, or a copyback, we should
really be updating the component labels.
2002-11-15 03:57:48 +00:00
enami eb0cfdb469 Cosmetic changes. 2002-11-15 03:30:26 +00:00
oster 35f6622aa7 These printf's have outlived their usefulness. *poof* 2002-11-15 03:00:12 +00:00
oster 56f6918fef rf_markalldirty() needs to update the mod_counter for used_spares too!
This bug appears as "incorrect Mod Counters" in 'raidctl -s'.  The
reason it was seen only in 'raidctl -s' is because of the conditions
needed to trigger the bug:
  a) a raid set is configured
  b) no partitions on that set are mounted or are otherwise in-use
  c) a component is failed, and subsequently rebuilt to a hot spare
  d) the machine is rebooted while something (e.g. 'raidctl -s') has
the device open (and, therefore, rf_markalldirty() has been called)
but before the final rf_update_component_labels() is done.

Needless to say, the window for this happening is *very* small, and it
was only because I was testing some obscure stuff that I even noticed it.
2002-11-14 17:11:54 +00:00
tsutsui 2388751cea Sync with copyright verbiage update of OpenBSD's iha(4). 2002-11-14 17:07:42 +00:00
tsutsui 4d00e59ba6 Correct copyright notice since this code was mostly taken from
if_ne_isapnp.c, not if_fmv.c.
2002-11-14 16:49:55 +00:00
dsainty ad9ef28cf5 Regen. 2002-11-14 11:33:48 +00:00
dsainty c4701e3705 Add Palm m550 (Tungsten) 2002-11-14 11:30:26 +00:00
gson 1fd621f7df eap.c 1.54 changed ES1371 specific code but failed to make the
corresponding cases to the ES1370 case, causing a panic when
attaching an ES1370.
2002-11-14 04:43:23 +00:00
oster f03dc09c94 Don't allow failing more than one component of a set, or
failing a component that has been spared, or "double-failing"
an already failed component.  XXX This isn't the right place to fix
this, but better here than no-where (and I'm hoping to move it sometime
soon).
2002-11-14 03:04:20 +00:00
simonb 39a06351b8 Register definitions for the ST M41T81 serial-access RTC. 2002-11-12 01:01:37 +00:00
simonb 609018be94 Register definitions for the Xicor X1241 2-wire RTC. 2002-11-12 01:00:59 +00:00
oster bd2dd01d29 xorBufCount needs to be initialized too! 2002-11-12 00:01:32 +00:00
pooka 36e8081d49 rename EAP_EN() to the more descriptive EAP_DAC_EN(), and
use it everywhere.
2002-11-11 22:17:47 +00:00
martin 8a5edd4981 Ooops, put back ehci_dump() which I accidently removed in the last commit.
Thanks to enami tsugutomo for noticing this.
2002-11-11 20:55:28 +00:00
kanaoka 9e351ea764 Add support for "Planex FNW-3603 cardbus ethernet".
by kern/18961: From: prlw1@cam.ac.uk.
2002-11-11 14:21:18 +00:00
kanaoka 6a22a366a4 Regen:
Add support for "Planex FNW-3603 cardbus ethernet".
by kern/18961: From: prlw1@cam.ac.uk.
2002-11-11 14:20:01 +00:00
kanaoka 853a2913d9 Add support for "Planex FNW-3603 cardbus ethernet".
by kern/18961: From: prlw1@cam.ac.uk.
2002-11-11 14:15:48 +00:00
onoe 409174d6fa Add support of AboCom FE2500MX 10/100 Ethernet (Lanneed LD-CBL/TX). 2002-11-11 12:51:38 +00:00
onoe b9cfd2c966 Regen: Add AboCom FE2500MX 10/100 Ethernet (Lanneed LD-CBL/TX) 2002-11-11 12:51:07 +00:00
onoe ec211ef168 Add AboCom FE2500MX 10/100 Ethernet (Lanneed LD-CBL/TX) 2002-11-11 12:50:33 +00:00
thorpej dccc71f1fe Fix signed/unsigned comparison warnings. 2002-11-10 03:28:59 +00:00
oster 1ac4be5d3e Nuke a printf() from rf_FailDisk(). 2002-11-09 19:50:03 +00:00
thorpej 73f78d5e61 Fix signed/unsigned comparison warnings. 2002-11-09 18:52:20 +00:00
enami 545f475e0e Fix multicast handling on 3C905B or later card;
- Handle IFF_ALLMULTI case correctly.  This is necessary to mrouted working.
  Tested by taca@netbsd.org.
- Clear unnecessary multicast hash bit.  Otherwise, unnecessary multicast
  packet is received.  Tested by me with the 3C905C bought at akihabara.
  It was 2980yen.

The code is written by fvdl@netbsd.org and me.
2002-11-09 11:45:18 +00:00
martin 2116496797 Move ehci_dump_exfer into #ifdef DIAGNOSTIC, it's not called w/o.
From FUKAUMI Naoki in PR 18988.
2002-11-09 08:59:46 +00:00
martin f5b121503a Add TI PCI4410 PCI-CardBus Bridge w/ OHCI IEEE 1394,
from FUKAUMI Naoki in PR 18989.
2002-11-09 08:51:14 +00:00
grant 0d997522cc regen for ATI Rage Mobility M1. 2002-11-09 07:39:55 +00:00
grant 9d16807813 add ATI Rage Mobility M1.
from FUKAUMI Naoki in kern/18987.
2002-11-09 07:39:06 +00:00
bouyer b99551540c in siop_reset(), reset sc_ntargets to 0. The number of targets will be
computed again in siop_add_reselsw()
in siop_reset(), reset the tag reseloff to 0, in addition to the lun reseloff.
If siop_add_dev() fails this time we would use the old reseloff, clobbering
memory now used for something else.
2002-11-08 22:04:41 +00:00
kristerw 63683d5acc Removed unused global variable "int repproto". 2002-11-08 22:03:50 +00:00
simonb 6f485abe93 Add a prototype for set_busreg(), fix a couple of white space nits. 2002-11-08 07:01:26 +00:00
msaitoh f321ab1a02 Add support for Adaptec 200[05]S
reviewed by Andrew Doran
2002-11-08 05:47:35 +00:00
msaitoh 9a37a3052b regen 2002-11-08 05:43:23 +00:00
msaitoh 8281950db5 add Adaptec 200[05]S (DPT) 2002-11-08 05:42:38 +00:00
kent 48dbdc6afe Fix LR contrary problem of play.balance and record.balance. The
change is based on PR kern/18901 by SUNAKAWA Hirokatsu.
2002-11-08 05:02:07 +00:00
enami b7ac697dae s/than than/than/. 2002-11-08 02:05:16 +00:00
martin c4349cac72 Add a driver for the Myson Technology MTD803 3-in-1 Fast Ethernet Controller,
provided by Peter Bex in PR 18675.
2002-11-07 21:56:56 +00:00
thorpej 94390e4587 Regen; add Intel i31244 Serial ATA controller. 2002-11-07 20:55:13 +00:00
thorpej 80195e6cb9 Add Intel i31244 Serial ATA controller. 2002-11-07 20:49:57 +00:00
martin 372a4df84d Regen (Myson MTD804 added) 2002-11-07 20:41:27 +00:00
martin bdac1eff58 Add Myson MTD803 3-in-1 Fast Ethernet Controller. 2002-11-07 20:40:28 +00:00
martin e750674637 Regen (MYSON MTD803 added) 2002-11-07 20:37:03 +00:00
martin d407db9cfd Add MYSON MTD803 2002-11-07 20:35:55 +00:00
someya c8d97c4f27 Fix recording problem on SiS7018. 2002-11-07 11:44:12 +00:00
thorpej 1cba452d86 Fix signed/unsigned comparison warnings. 2002-11-07 08:02:09 +00:00
thorpej 9c69b64bfa Fix signed/unsigned comparison warnings. 2002-11-07 07:55:53 +00:00
thorpej 8b0970afaf Fix signed/unsigned comparison warnings. 2002-11-07 07:46:39 +00:00
thorpej d52f5f8ecb Make mii_media_active unsigned. 2002-11-07 07:45:03 +00:00
thorpej 499a491929 Fix signed/unsigned comparison warnings. 2002-11-07 07:41:22 +00:00
thorpej 1e1c759c66 Don't use newlines in string literals. 2002-11-07 06:54:25 +00:00
thorpej 61eddf92a7 Clean up token pasting so that this works with GCC 3.3's CPP. 2002-11-07 06:51:51 +00:00
kent 12ac4ab865 Fix LR contrary problem of mixer and record gain polarity
problem.  The change is based on the patches in PR kern/12878 by
Zdenek Salvet and PR kern/18901 by SUNAKAWA Hirokatsu.
2002-11-06 16:58:37 +00:00
kent dbf1b9ea9f Add codec IDs for AD1981B, STAC9750/51, and STAC9766/67.
Whitespace.
2002-11-06 13:41:22 +00:00
dsainty d85f3281dd ARGSUSED/FALLTHROUGH delinting (first pass) 2002-11-06 10:56:22 +00:00
onoe d125f36802 Add support of Sony PEGA-WL100 CF Wireless LAN Card. 2002-11-06 05:45:17 +00:00
cjs faade5e87c Fix typo. 2002-11-05 12:13:40 +00:00
cjs c866abcfc9 Restore umass_fixup_sony so that Sony cameras work once again. 2002-11-05 12:06:58 +00:00
pooka 00f370741b we don't own Jason, even if we'd like to
(fix typo in comment, in case you're wondering ;)
2002-11-04 19:17:33 +00:00
kent 22d0e4bb85 auvia_set_params:
For a fixed-rate codec, when AUMODE_RECORD and AUDIO_ENCODING_MULAW or
AUDIO_ENCODING_ALAW, use AUDIO_ENCODING_SLINEAR_LE/16bit for native encoding
instead of AUDIO_ENCODING_ULINEAR/8bit because aurateconv does not support
sampling rate conversion for 8 bit PCM.
This change fixes PR kern/18834.
2002-11-04 16:38:49 +00:00
pooka d6b170e2de add support for the second DAC found on the chip. to attach the second
audio device, define EAP_USE_BOTH_DACS
2002-11-04 16:34:25 +00:00
kent 8eadd119b9 Add power-management register definitions. 2002-11-04 14:56:10 +00:00
wiz 98219f2782 regen (typo fix from PR 18921) 2002-11-04 12:36:25 +00:00
wiz ec50e0a966 Fix typo reported by Nicolas Joly in PR 18921. 2002-11-04 12:35:27 +00:00
junyoung 0c51bd608e Missing '.' 2002-11-04 08:05:52 +00:00
jdc 09f6c6a9cc Apply patch from Takeshi Nakayama on current-users which fixes problems
when trying to play audio CD's on some drives.  The original message was :

> In my analysis, rev 1.19 of cd_scsi.c used cd_scsibus_set_mode()
> instead of scsipi_mode_select(). cd_scsibus_set_mode() had the code
> which clear a data.header.data_length, but scsipi_mode_select()
> does not have. So we need `data.header.data_length = 0;' before
> calling scsipi_mode_select().

Fixes PR 7299 and probably PR 15155 and PR 16883 too.
2002-11-03 21:14:28 +00:00
bjh21 b9870fb26c Quieten lint a little. 2002-11-03 14:59:06 +00:00
bjh21 bfd06a4ff0 Regen (Simtec USB). 2002-11-03 12:59:44 +00:00
bjh21 097f627f92 Add Simtec USB podule. 2002-11-03 12:58:15 +00:00
augustss a098e7a97d Avoid lint complaints. 2002-11-03 09:57:40 +00:00
jdolecek 9d0bfe1097 reduce number of <'s in FatalOp debug print, to not get mistaken with
CVS conflict marker
2002-11-02 20:58:17 +00:00
perry 1645cbb7b4 change array to unsigned char. fixes 23430 lint warnings. "really!" 2002-11-02 16:26:03 +00:00
martin b78c3d23e1 Need to cast a bus_space_addr_t to (u_long) before gcc allows us to cast
it to a pointer on 32bit spacr64 kernels. Sigh.
2002-11-02 15:54:10 +00:00
kristerw e3355c4796 Removed unused structure. 2002-11-02 10:47:49 +00:00
perry 6858187df6 /*CONTCOND*/ while (0)'ed macros 2002-11-02 07:20:42 +00:00
perry c290830eb1 changed asm()s to __asm()s.
XXX Now, could someone please explain to me why in the love of Bob a
file containing inline x86 assembler is in sys/dev/isa/????
This should be moved, fixed, or nuked from space.
2002-11-02 02:10:56 +00:00
jdolecek 60c092247e pckbc_poll_data1(): make sure the loop variable is always initialized
this potential problem found by Krister Walfridsson
2002-11-01 21:39:31 +00:00
mrg 603098b9b5 implement separate read/write disk statistics:
- disk_unbusy() gets a new parameter to tell the IO direction.
	- struct disk_sysctl gets 4 new members for read/write bytes/transfers.
	when processing hw.diskstats, add the read&write bytes/transfers for
	the old combined stats to attempt to keep backwards compatibility.

unfortunately, due to multiple bugs, this will cause new kernels and old
vmstat/iostat/systat programs to fail.  however, the next time this is
change it will not fail again.

this is just the kernel portion.
2002-11-01 11:31:50 +00:00
martin 8ab4396fef Rearange struct mach64screen to be derived from struct rasops_info,
move a few bits around and make adding screens after attach time
actually work.

When not booting as console, try to properly set up the hardware to
get a display nevertheless (XXX - does not yet work on my U5).

#if 0 some unused functions planned for future extensions (to make clear
they are unused now)
2002-10-31 14:10:07 +00:00
junyoung c6326ab133 Now VGA_CONSOLE_SCREENTYPE can be specified with VGA_RASTERCONSOLE.
Currently only 80x25 and 80x30 modes are supported.
2002-10-31 13:06:50 +00:00
junyoung 78e97058d5 Simplify vga_raster_setscreentype() and clean up code. 2002-10-31 11:05:25 +00:00
ichiro c0c620567a regen 2002-10-31 10:40:19 +00:00
ichiro 5cbc05430b add WLI-USB-KS11G USB wlan adapter 2002-10-31 10:36:42 +00:00
leo 4ffdd69467 Fix typo (isic_isac_recover -> isic_recover). Noticed by Matthias Drochner. 2002-10-29 21:02:45 +00:00
junyoung d285dd8c38 Reduce the number of #ifdef __sparc__ from 5 to 3. 2002-10-29 17:54:40 +00:00
tsutsui 561b10d262 Remove no longer needed #ifdef __alpha__ and #ifdef __mips__. 2002-10-29 17:01:16 +00:00
junyoung 93c1a9d0c7 Rename sparc_screen_is_console() to mach64_is_console() and turn it into
a MI interface.
2002-10-29 13:50:11 +00:00
blymn 29b7b4241f Added support for fingerprinted executables aka verified exec 2002-10-29 12:31:20 +00:00
chs fc374b9d4f add Boca Research 4- and 8-port cards. from openbsd. 2002-10-29 08:59:36 +00:00
augustss 94a55d86a0 Cosmetic changes. 2002-10-27 20:16:41 +00:00
martin 6837231089 Allow attaching wskbd at kbd, idea from Valeriy Ushakov.
This allows us to use both the old sun keyboard events (/dev/kbd) as
new wscons events (/dev/wskbd*).

TODO: Not implemented for the kbd at zstty attachment.
Wskbd as console does not yet work.
2002-10-26 19:11:13 +00:00
martin a4c5b71389 Fix pasto. 2002-10-25 21:50:10 +00:00
martin 8c2d46f972 Add a few symbols. 2002-10-25 21:49:41 +00:00
leo e70f340199 Fritz!PCI v2.0 ISDN driver from FreeBSD. 2002-10-25 21:03:47 +00:00
martin 325d7cc0df Scan code/keymap table for sun keyboards and wscons.
From OpenBSD, written by Jason L. Wright.
2002-10-25 20:40:34 +00:00
junyoung 9d459e65ae Register aperture is now mapped as a subregion of the framebuffer aperture
using bus_space_subregion(). This makes reg*() look better.
2002-10-25 18:57:06 +00:00
martin 456f63b54e Sprinkle a few bus_space_read*/bus_space_write* calls and simplify register
offset calculation. Mostly from Bang Jun Young.

Don't call wsdisplay_cnattach unconditionally.

On sparc use OF to decide whether we are console output.

This makes it actually work on my U5 - if only we had a keyboard driver
to produce wskbd events (coming soon).
2002-10-25 18:03:03 +00:00
kent 4669f33e4f regen 2002-10-25 15:58:03 +00:00
kent 9bedd91d95 Correct a typo in the previous change. 2002-10-25 15:56:47 +00:00
kent 7da30dbfb0 Add vender IDs and product IDs:
- ENE CB1410 (http://mail-index.netbsd.org/tech-kern/2002/10/24/0038.html)
 - iCompression iTVC15

Correct ID of AMD PBC8111_AC.
2002-10-25 15:54:33 +00:00
oster 661b040860 Poolify callback descriptor allocation. While some of the underlying
problems just get shuffled around a bit, we do play more nicely with
LOCKDEBUG now.
2002-10-25 03:14:37 +00:00
mycroft 8131f239bf IBSS mode does in fact work on some earlier Symbol firmware versions, as
witnessed by my home network.
2002-10-25 01:35:12 +00:00
martin 1def10c9a4 A few 64bit nits. 2002-10-24 20:41:59 +00:00
junyoung 2c1cfbd9df Add machfb, ATI Mach64/Rage framebuffer display driver.
XXX this version is not fully functional yet. More to come shortly.
2002-10-24 18:15:57 +00:00
jdolecek 4501e88f21 put back the D_DISK tag for cdevsw mistakely removed in previous
revision
2002-10-24 08:04:00 +00:00
grant 20aee41979 regen 2002-10-24 06:40:56 +00:00
grant e1efdc58c7 COREGA are OEM NDC products.
add NDC NCP130 rev A2 wireless NIC.

From T. M. Pederson in kern/18609.
2002-10-24 06:40:07 +00:00
augustss 37da939075 Make it compile after the kq changes.
XXX I'm not sure what kqfilter cgd should have, it gets nokqfilter for now.
2002-10-24 01:43:54 +00:00
augustss ec2ec8eeeb g/c IRDA ioctls (was within #if 0 anyway)
Fix kqueue pasto.
2002-10-24 01:36:34 +00:00
pooka d16eacc3ef avoid namespace collision with IMASK 2002-10-23 14:57:15 +00:00
jdolecek e0cc03a09b merge kqueue branch into -current
kqueue provides a stateful and efficient event notification framework
currently supported events include socket, file, directory, fifo,
pipe, tty and device changes, and monitoring of processes and signals

kqueue is supported by all writable filesystems in NetBSD tree
(with exception of Coda) and all device drivers supporting poll(2)

based on work done by Jonathan Lemon for FreeBSD
initial NetBSD port done by Luke Mewburn and Jason Thorpe
2002-10-23 09:10:23 +00:00
christos f64a8c827d remove duplicate cpp defs. 2002-10-23 02:32:36 +00:00
perry 0b13788269 remove redundant defines caught by lint 2002-10-23 02:06:11 +00:00
perry 43ed640ca5 fix lint warnings about things being stringified under cpp -traditional 2002-10-23 01:50:11 +00:00
christos ab944659c0 change the macro params to longer names 2002-10-23 01:34:58 +00:00
petrov a1d708ab63 Correct typo in comment(pointed by john heasley <heas@shrubbery.net>). 2002-10-22 17:58:45 +00:00
drochner d17faedcd0 -fix script botch from CFATTACH_DECL introduction
-while here, spotted probe error: we shouldn't try other locations if the
 base address is nailed down per locator
2002-10-22 16:18:26 +00:00
thorpej 3e6493c448 Fix typos in media configuration register init. From patch posted
to tech-kern by Erik Anggard <erik.anggard@packetfront.com>.

May address PR 16346.
2002-10-22 16:13:44 +00:00
kent 742633f2d2 Correct codec id of VT1611A.
Add codec id of VT1616.

ALC650 codec specific chagne:
 Add outputs.surround.mixtofront,
 outputs.center.mixtofront, and outputs.lfe.mixtofront.

VT1616 codec specific change:
 Add outputs.surround.mixtofront,
 outputs.center.mixtofront, and outputs.lfe.mixtofront.
 (Not tested)

XXX: We should provide ac97(4) manual page and describe
codec-specific features.
2002-10-22 13:48:30 +00:00
ad 0d6011b266 PR 18760: don't issue I2O_EXEC_IOP_CLEAR to AMI boards, since some
firmware revisions can't handle it.
2002-10-22 13:42:33 +00:00
chs cb1254e9a1 in ofnet_read(), interpret returns of either -2 or 0 from OF_read() as
meaning that there is no packet available.  the OF spec reportedly
says that it's supposed to return 0 in this case, but my Firepower box
uses -2, so this is probably another of those FIRMWORKSBUGS things.
we'll accept both values in any case.
2002-10-22 06:28:50 +00:00
oster 08933e5968 Better protect hot-spare adding, and make it LOCKDEBUG friendly. 2002-10-22 03:15:28 +00:00
simonb 10a55ec82a In pcic_chip_socket_enable() we need to set "reg" ifdef PCICDEBUG as
well so we can print it out a little further on.
While here, remove an unreachable "return" statement.
2002-10-22 02:12:42 +00:00
simonb 3e8b9bad9e In icp_init(), initialise the "state" variable before incrementing it. 2002-10-22 01:25:28 +00:00
fair 96b8b890ed Change the "dontcare bits" argument to ifmedia_init() to IFM_IMASK
so that it is possible select PHY instances other than the first
one (instance zero), if there is more than one PHY attached.
2002-10-22 00:01:55 +00:00
fair 2104199dc3 Change the "dontcare bits" argument to ifmedia_init() to IFM_IMASK
so that it is possible select PHY instances other than the first
one (instance zero), if there is more than one PHY attached.
2002-10-21 23:38:10 +00:00
uwe af2a75546d Clean-up kbd driver layers a bit more. Lift common code into the upper layer.
Add some wskbd TODO remarks (hi, martin).
2002-10-21 15:36:35 +00:00
uwe c33f6bd531 vuid_event.h is in dev/sun now. 2002-10-21 15:22:03 +00:00
soren 1e2dbbd422 Regen. 2002-10-21 14:45:19 +00:00
soren 7fe8894787 Correct name of TI 802.11 chip. 2002-10-21 14:45:00 +00:00
grant 9c7cf018ff regen 2002-10-21 13:41:12 +00:00
grant f6e8b6f584 add D-Link 520+ wireless ethernet. 2002-10-21 13:40:14 +00:00
soren 75a75e1d7a WI_PCI_CBMA belongs in dev/pci. 2002-10-21 11:57:25 +00:00
itojun 6fdbe5f4cb regen 2002-10-20 13:50:36 +00:00
itojun 3a816c9777 PENTAX Optio230 (http://www.digital.pentax.co.jp/ja/optio230/)
From: Yasushi Oshima <oshimaya@sc.starcat.ne.jp>
2002-10-20 13:49:46 +00:00
martin a5e0b21547 Make it compile again (the softc struct is named inconsistently,
so Jasons script did break this, but thats a bigger fish to fry than I'm
willing to handle now.)
2002-10-20 10:50:01 +00:00
someya 66711e8f5f Bit shifts for interrupt channel exceeded u_int32_t width. 2002-10-20 01:06:10 +00:00
mjacob 3c709b448c Fixes kern/18709 (correcting some typos in comments) 2002-10-19 18:41:34 +00:00
atatat df90f09849 Don't print messages about pccbb_intr_disestablish() unless debugging
is actually enabled.
2002-10-19 18:01:59 +00:00
mjacob 3e9f96217e Remove ISP_DMA_ADDR_T as a 'type'. Instead, go off of whether
ISP_DAC_SUPPORTED is defined and do a real typedef for the size
of DMA addresses. ISP_DAC_SUPPORTED also decides how much of any
particular DMA address is significant.

Lose STRNCAT over the side.

Add in (sight unseen) 10160 support.
2002-10-18 23:35:25 +00:00
mjacob eaf36bcbb5 Add some A64 related support. 2002-10-18 23:33:39 +00:00
mjacob af03ded9f1 Some lint fixes. 2002-10-18 23:33:14 +00:00
mjacob efd47c5c46 Slight cleanup to use ISP_MUSTPOLL macro in case we can ever fix the
issue about knowing when we're on the interrupt stack or not.
2002-10-18 23:32:53 +00:00
mjacob c4e94625c8 Fix buglet in structure canonicalization of A64 commands. 2002-10-18 23:32:08 +00:00
mjacob c58e841e1e Add in (sight unseen) 10160 support.
Start doing the work necessary to support DAC (Dual Address Cycle)
environments. This allows for direct DMA to > 4GB memory from a PCI
card.

Lose STRNCAT over the side and use SNPRINTF instead.
2002-10-18 23:31:11 +00:00
mjacob ce9eb51cc5 Put in, sight unseen, changes which should enable 10160 support.
Interestingly enough, Sun actually made a product out of the 10160,
which is a single channel variant of the 12160 (Ultra3) card.
2002-10-18 23:26:15 +00:00
mjacob 0d0c2f5911 Update to the latest Fibre Channel f/w from the QLogic intranet site.
Fixes beaucoup bugs.
2002-10-18 23:19:20 +00:00
junyoung cc537c2f3a Add option NEW_BUFQ_STRATEGY, a new buffer queue strategy for better
system responsiness under high disk I/O load.

OK'ed by Juergen Hannken-Illjes.
2002-10-18 14:31:10 +00:00
oster 2eecfbf479 Improve and/or re-arrange a number of locks. While much of the locking is
still a mess, and there are a number of unresolved issues here, this
gets us closer to being happier in LOCKDEBUG land.
2002-10-18 02:46:36 +00:00
yamt b4890b32a7 regen; fix simple typos 2002-10-18 00:59:11 +00:00
yamt 2e29ebca4d fix typos; "wiseman" is 82542, not 82452. 2002-10-18 00:56:16 +00:00
fair 8459c79958 Change the "dontcare" bits argument of ifmedia_init() to IFM_IMASK,
so that PHY instance is not siginificant in ifmedia_match(). This
is done to support multiple PHYs on the MII. Without this change,
ifmedia_set() would panic the system when no PHYs were matched.

I ran into this on an AMD EasyNow PC, which is built around SiS
system chips with an embedded SiS 900 core, and an external AMD
Am79c901 PHY, which presents two PHYs on the MII: one for HomePNA,
and one for standard 10base-T. The 10base-T PHY ends up with instance
number 1...
2002-10-17 01:17:30 +00:00
jdolecek 4f2f1a6fd4 match the joystick device on Creative SBLive! card; note this only works
when emuxki(4) driver is compiled into the kernel, it has to enable
the joystick port
2002-10-16 21:09:31 +00:00
jdolecek cafbd6033f for AUDIO_SETINFO, silently enforce same mode as the currently used one;
this value is supposed to be read-only for this ioctl
2002-10-16 21:07:08 +00:00
kent 56d5eaf4f4 Add all vendor/codec IDs which OpenBSD has and NetBSD doesn't have. 2002-10-16 16:38:25 +00:00
kent 565a6b3384 Support for 4ch/6ch audio playback with VT8233/VT8235. 2002-10-16 15:27:28 +00:00
leo 8ad35e6ebd Regen. 2002-10-16 15:00:50 +00:00
leo 6a4a98f7a2 Add Fritz!PCI v2.0 ISDN Interface 2002-10-16 14:55:26 +00:00
tshiozak 47cefca831 fix a simple, but wicked bug in EcSpaceHandler().
this bug causes EcWrite via EcSpaceHandler to always write 0 as the data byte.
2002-10-15 20:53:37 +00:00
junyoung 1ce9af548e Add VGA raster graphics console driver. It is written as an extension
to char-cell based vga(4) driver, and fully compatible with existing
apps like XFree86. Currently it supports 80x25, 80x30, 80x40 and 80x50
text modes using emulation. You can enable it by specifying `options
VGA_RASTERCONSOLE' in your kernel config file.

Note that displaying multilingual text doesn't work yet. Necessary
code is already there, but userland stuff and some functionality isn't
ready for prime time yet. I'm working on them.
2002-10-15 18:14:41 +00:00
junyoung 847ebeec25 Add modecookie to struct wsscreen_descr, which is used to point to video
mode specific information.
2002-10-15 17:38:08 +00:00
junyoung 0f061c7c7a Move vga_common_probe() to vga_common.c. vga_common.c contains common
stuff between existing char-cell VGA driver and raster VGA driver to
come shortly.
2002-10-15 17:30:43 +00:00
onoe db87a0f069 Fix to use 104bit key for Intersil/Symbol firmware:
It seems that the firmware accept 104bit key only if
	all the keys have 104bit length.  We get the length of
	the transmit key and use it for all other keys.
	Perhaps we should use software WEP for such situation.
2002-10-15 08:53:46 +00:00
elric faa24007eb Allow debugging to work on LP64 arches. 2002-10-14 19:16:55 +00:00
kent 297e3c5d35 Mixer changes:
- Add "outputs.surround", "outputs.center", and "outputs.lfe"
 - If the codec is not capable of a feature, mixer variables
about the feature is not created.  For example, no
"outputs.tone" for a codec without tone control.
 - Set the following mixer values in ac97_attach():
	outputs.master=127,127
	outputs.master.mute=off
	outputs.headphones.mute=off
	outputs.surround=127,127
	outputs.surround.mute=off
	outputs.center=127
	outputs.center.mute=off
	outputs.lfe=127
	outputs.lfe.mute=off
	inputs.dac.mute=off
	inputs.cd.mute=off
	inputs.line.mute=off
	inputs.aux.mute=off
	inputs.video.mute=off
	record.volume.mute=off
    because the default setting of AC'97 codec (all mutes are on,
    and maximum volume) is troublesome.
 - Make "char*" parameters of ac97_get_portnum_by_name() "const char*"

Codec ID changes:
 - If a codec ID is unknown but its vendor ID is known,
ac97_attach() prints the vendor name like "dev0: <vendor name>
unknown (0xXXXXXXXX) codec;"
 - Add IDs of Asahi Kasei AK4542, AK4544, AK4544A, AK4545,
Realtek ALC100
 - Correct a vendor name: "Advance Logic" -> "Avance Logic"
 - Add capability of codec-specific initialization

ac97_attach():
 - CDAC, SDAC, and LDAC are eanabled.
 - DELAY() before mixer settings.  ThinkPad X24 needs it.

ALC650 codec specific change:
 - Add "outputs.surround.lineinjack" to switch the line-in jack
to the surround output
 - Add "outputs.center.micjack" and "outputs.lfe.micjack" (alias
of "outputs.center.micjack") to switch the mic jack to the
center/lfe output.
2002-10-14 08:48:15 +00:00
takemura 900b200c92 Moved MI APM definitions into dev/apm. 2002-10-14 02:08:37 +00:00
kent 5179f774f7 Support for sampling rate conversion against slinear_be 16bit/24bit. 2002-10-13 11:34:54 +00:00
fair 03f1a009cb If pnaphy attaches, make sure the mii_flags has MIIF_IS_HPNA in it. 2002-10-13 06:28:01 +00:00
elric bc24d33b67 We need to pass the dk_softc, not the osc. 2002-10-12 22:43:25 +00:00
wiz 0db3e0b3d6 Fix typo in comment. 2002-10-12 19:45:54 +00:00
kent 1bb5fc51aa Correct spelling. VENDER -> VENDOR 2002-10-12 10:46:24 +00:00
someya 21249921f3 add autri_flags_codec() from OpenBSD, reported by grendel@zeitbombe.org 2002-10-12 08:42:21 +00:00
kent 1d5039e637 Add AC97_CAPS_* and AC97_VENDER_ID_MASK from OpenBSD. 2002-10-12 07:40:41 +00:00
jdolecek 0f4abac044 use nopoll() instead of empty uriopoll() for NetBSD
rename former uriopoll() to urioselect() and provide it only for OpenBSD -
  FreeBSD uses nopoll() for urio too
g/c no longer needed uriopoll define for OpenBSD
2002-10-11 20:29:30 +00:00
fvdl 6dc742c240 Don't include <i386/isa/icu.h> 2002-10-11 19:14:06 +00:00
kent 3d86014c1c Kick auich_calibrate() by config_interrupts().
auichi_calibrate(): If the measured rate is less than 48k, use
48k.
2002-10-11 04:11:28 +00:00
kent 42e4e19119 ac97_attach(): Restore the default rate value after VRA checking.
This change might solve PR kern/18613.
2002-10-11 02:32:23 +00:00
oster 4eb16a0a4f bye-bye to RF_FREELIST_GET_INIT_ARG and RF_FREELIST_FREE_CLEAN_ARG
whos services are no longer needed after poolification of PSS structures.
2002-10-11 02:15:57 +00:00
oster 9401ec32c0 poolify the allocation of Parity Stripe Status structures.
XXX: Current code may have problems if kernel memory is completely depleted.
This is, unfortunately, not the only chunk of RAIDframe code to have
this problem, and will have to be dealt with. :(
2002-10-11 02:10:08 +00:00
thorpej b4d9be67e5 Fix up IPKDB_NE_PCI option dependencies:
* IPKDB_NE_PCISLOT does not need any dependencies (it is merely a
  required parameter for IPKDB_NE_PCI).
* IPKDB_NE_PCI does should not have an option-dependency on IPKDB_NE_PCISLOT.
  While IPKDB_NE_PCISLOT is a required parameter, that is not how option-
  dependencies work, and we don't want IPKDB_NE_PCI to imply IPKDB_NE_PCISLOT,
  as that would cause a bogus value for IPKDB_NE_PCISLOT to be used.

Also, the IPKDB_NE_PCI selector should be lower-case; make it so.
2002-10-11 00:57:59 +00:00
martin de956cbcda Only use one interrupt handler for both status changes and pcmcia IO
intterupts. No more races between the two interrupt handlers, without any
locking, and the driver becomes a bit simpler too.

Use the last bit of the config flags to select between the first and the
second sbus interrupt level the firmware has assigned to us.
2002-10-10 22:23:16 +00:00
thorpej 6be7d2f3e6 Move IR and Bluetooth config defns missed in previous commit. 2002-10-10 22:07:44 +00:00
thorpej 05f976610a Move IR and Bluetooth config defns to their own files. 2002-10-10 21:52:28 +00:00
pooka fec12d1505 make a few debug printf's match reality 2002-10-10 15:39:01 +00:00
thorpej 60adad59bd Define a "scsi_core" attribute. Make the "scsi" attribute depend on
"scsi_core".  Make all the files previously selected by the "scsi"
attribute selected by the "scsi_core" attribute.  Give the "scsibus"
device the "scsi_core" attribute.
2002-10-09 20:23:56 +00:00
jdolecek d679e94c87 tlp_pci_vpc_21140_quirks(): make agnostic to signed/unsigned char; fixes
compile on cats
2002-10-09 16:59:19 +00:00
dan 86d2054739 Account for 1 bit of entropy for each timestamp added during
initialisation. This is just as silly as the other entropy
estimations, but it at least allows us to see how many values have
been added.

spl protect rnd_get_entropy_counter call properly

Make rndpool start out doing rotations on the first pass - make the
LSFR's be less sensitive to stuck bits in poor initial inputs.

Add considerable comments regarding the mixing function.
2002-10-09 14:48:58 +00:00
elric 152dfaff5d We need to do biodone() if strategy is called on an unconfigured device. 2002-10-09 14:04:08 +00:00
kent dd7455ebdc Add 'mask' member to the struct ac97_codecid.
Cirrus Logic Crystal codec uses lower three bits in ID for a
revision number.  We should mask an actual ID value before
matching to this table.
2002-10-09 12:06:17 +00:00
fair 336a7fda4a correct LP64 bug in RND code and close PR 18592 2002-10-09 06:27:09 +00:00
augustss 9487fc5b8b Make sure we are at splusb() while polling. 2002-10-09 01:02:26 +00:00
pooka 48f6d7e229 fill in name for TriTech unknown: TR28602 2002-10-08 21:40:04 +00:00
pooka 164c4e3bec ubsa_activate() is prototyped unconditionally as non-static,
reflect that here.

Fixes compilation on non-DEBUG kernels.
2002-10-08 16:13:36 +00:00
minoura 5139f048fb Add quirk for Connectix VirtualPC emulated 21140, just to print the name
from the SROM.
2002-10-08 15:09:54 +00:00
minoura 0ca32eba66 Check existence of the default 10baseT media for 21140.
If one does not exist, fall back to the first.
2002-10-08 15:05:35 +00:00
kent 54419c891c - Enable in-kernel sampling rate conversion for fixed-rate codec
- Remove VRA/VRM enabling in auvia_attach()
- Use ac97_codec_if::set_rate()
- Return no AUDIO_PROPS_MMAP for fixed-rate codec
- Remove unused variables in auvia_softc
2002-10-08 13:10:24 +00:00
kent 376a43fb3d auvia:
- Add aurateconv
 - Update comment
2002-10-08 13:09:18 +00:00
augustss e785db54af Add driver for Belkin (and other) serial adapter.
From FreeBSD.
2002-10-08 13:08:02 +00:00
ad eaf0107d26 Fix pasto. 2002-10-08 12:51:20 +00:00
augustss 581b31c79c Regen. 2002-10-08 12:40:52 +00:00