Commit Graph

14647 Commits

Author SHA1 Message Date
jmcneill 182716ac88 Attach to PNP0F03 -- makes the PS/2 mouse on this Dell work. 2003-01-27 19:18:46 +00:00
bouyer 0e0c2ae01d Remove revision in quirk entry for TOSHIBA XM-4101TASUNSLCD. The same drive with a newer revision also fails, so assume all revisions are bad until proven otherwise. Should fix PR kern/19912. 2003-01-27 18:55:24 +00:00
thorpej 3381232270 Experimental support for RAID volumes configured by ATA "RAID" controllers.
Such RAID controllers are actually just IDE controllers with a BIOS that
can create RAID volumes and write the configuration info to config blocks
on the disks.  The BIOS can do I/O to these volumes, and the OS must
understand the config blocks and implement RAID in software in order to be
able to use these volumes.

Only SPAN (simple concatenation) and RAID0 are supported at this time,
and writing back config blocks is also not supported at this time.  Currently,
only the Promise configuration scheme is supported, although supporting
the Highpoint scheme should not be too difficult.

In any case, this is sufficient to use the Promise RAID0 volume (thus
preserving the win2k AS installation) on this new Intel server I have.

Thanks to Soren Schmidt for doing the work in FreeBSD; it made this
task much easier.  The config block parsing code is adapted from his
work.
2003-01-27 18:21:23 +00:00
tsutsui 934e3c5a47 Set a value for MISCOUT register correctly in vga_setup_regs(). 2003-01-27 15:27:44 +00:00
tsutsui 289b9289f3 const'ify. 2003-01-27 15:22:47 +00:00
tsutsui 89b4d6221e - Replace some magic numbers with proper macro.
- Use vga_6845_{read,write}() defined in pcdisplayvar.h and
  remove vga_crtc_{read,write}() macros in vgareg.h.
2003-01-27 15:16:10 +00:00
tsutsui 862013bb51 - Use u_int8_t instead of char for register structure.
- Define MC6845_NREGS like vgareg.h.
2003-01-27 14:53:33 +00:00
tsutsui a8c7515f5f KNF and space/TAB cleanup. 2003-01-27 14:46:10 +00:00
toshii 1e6d7bcb87 Use PRId64 for daddr_t in a DPRINTF. 2003-01-27 13:06:38 +00:00
bouyer 0cb4c95848 Ops, initialise len before using it.
Also, the minimum frame len is ETHER_MIN_LEN - ETHER_CRC_LEN.
2003-01-27 10:35:08 +00:00
thorpej 8dc5018716 If the upper-layer provides a geometry, use it. 2003-01-27 02:43:30 +00:00
wiz 902dd8b54d Undo last (not supposed to be committed). 2003-01-27 00:32:44 +00:00
wiz b091df0ed2 regen (CANOSCAN N670U). 2003-01-27 00:31:01 +00:00
wiz 4307232850 Add CANON N670U scanner id. 2003-01-27 00:29:31 +00:00
chris d577246bde Regen. 2003-01-26 19:35:52 +00:00
chris 339056bf8f Add podule id for NET100 card. 2003-01-26 19:35:04 +00:00
matt ee04df9a4d Add support for Am79C87[45]. 2003-01-26 06:25:08 +00:00
matt 5ade701481 Regen. 2003-01-26 06:21:03 +00:00
matt b9f79bf02f Add AMD Am79C87[45] (which use the Altima OUI). 2003-01-26 06:20:30 +00:00
kleink bbb601497d Fix further printf format warnings for DEBUG, in the wake of daddr_t
having changed.
2003-01-25 23:18:46 +00:00
kleink 4e0e5333ae Fix further printf format warnings for DEBUG, in the wake of daddr_t
having changed.
2003-01-25 23:00:09 +00:00
tron 5067836b9e Use PRId64 instead of hard coding "%lld" to fix build problems under
LP64 ports.
2003-01-25 18:12:31 +00:00
tron 63dda858c6 Fix printf() format strings problems caused by "daddr_t" change. 2003-01-25 12:50:38 +00:00
thorpej f57bacfc63 Add a couple more Promise ATA133 controllers. 2003-01-25 04:45:24 +00:00
pk a22484a1ea zs_shutdown: lower IPL before sleeping. Also note the fact that the
effectiveness of that very tsleep() call is dubious at best.
2003-01-24 20:46:45 +00:00
thorpej ae5c422a40 Regen; Tweak a Promise description. 2003-01-24 17:47:17 +00:00
thorpej de5fb86d32 Tweak a Promise description. 2003-01-24 17:46:51 +00:00
nakayama 54e4cb1a6c fix kernel build error, such a configs w/o kbd, ms.
(approved by martin)
2003-01-24 16:54:34 +00:00
thorpej b3ffb6e4ab * Enable Ultra133 on the NVIDIA nForce 2.
* Make sure to test for PCI_VENDOR_AMD before testing for any
  AMD products.
2003-01-24 05:51:04 +00:00
thorpej fdedc91f87 Regen; add some more Promise products. 2003-01-24 05:34:25 +00:00
thorpej 5a31d135b0 Add some more Promise products. 2003-01-24 05:33:12 +00:00
thorpej b3b68a3ced Sort the Promise entries. 2003-01-24 05:18:56 +00:00
thorpej f6cc829138 Add support for the NVIDIA nForce ATA100 and nForce2 ATA133
IDE controllers, which are more-or-less compatible with the
AMD controllers.

XXX Need to determine the correct timing value for the nForce2
XXX at Ultra133, so we cap it at Ultra100, for now.
2003-01-24 04:53:13 +00:00
thorpej 34461a3ff9 Regen; add Nvidia nForce2 ATA133 IDE. 2003-01-24 03:16:08 +00:00
thorpej 8204d0458d Add Nvidia nForce2 ATA133 IDE product ID, and shuffle some
Nvidia entries around a little.
2003-01-24 03:15:04 +00:00
tsarna 68d5821c1b regen 2003-01-24 01:51:09 +00:00
tsarna 1b01d76d23 Add Griffin PowerMate 2003-01-24 01:49:22 +00:00
markd 31b8810652 Regen. 2003-01-24 00:19:40 +00:00
markd 4606c7c4e4 Add Nikon E885. 2003-01-24 00:18:26 +00:00
augustss 8aa76b0ae7 Add processor interface register definitions. 2003-01-23 21:17:15 +00:00
bad f4aacfe9fc Being able to make image backups of your whole disk, not to mention not
causing certain ata disks to lock up by reading beyond the last block,
beats catering to broken devices.

bounds_check_with_label() RAW_PART too.
2003-01-23 00:00:32 +00:00
mhitch 0dec3c2159 Lance chip needs to be accessed in sparse address space for alpha. Fixes
Turbochannel Ethernet card on Alpha 3000 systems.
2003-01-22 08:06:21 +00:00
augustss 0dd40ac3d5 Fix typo in last commit. 2003-01-21 21:00:56 +00:00
augustss 98a0fdb690 Make sure to set xs->datalen when we force a short inquiry. From kern/19971,
Shingo WATANABE.
2003-01-21 20:56:57 +00:00
augustss fa5b0c9ca0 Add quirk for Melco adapter. From kern/19971, Shingo WATANABE. 2003-01-21 20:56:13 +00:00
augustss 9c6ee93f4b Regen. 2003-01-21 20:53:51 +00:00
augustss 234e556fd2 Add Melco USB-IDE adapter. 2003-01-21 20:53:29 +00:00
kent 19056063ce Add DIAGNOSTIC code provided in PR kern/19919 by DHOYASHIKI Shinichi. 2003-01-21 16:05:21 +00:00
itojun aa8971e35f m_tag transition mistake (within #if 0) 2003-01-21 05:43:26 +00:00
itojun 0eec7150b6 vlan tagging mistake during m_tag transition 2003-01-21 05:39:57 +00:00
simonb b2fd1c7b6d Remove a line of unreachable code. It seems to be a remnant of starting
off with a different driver, and the way this code is structured the
offending line isn't needed.
2003-01-21 00:24:20 +00:00
augustss 5ad4518358 Lower debug level so the match routine isn't so verbose. 2003-01-20 21:14:57 +00:00
soren a35845dab6 Note hd44780 and cobalt panel driver from Dennis Chernoivanov. 2003-01-20 11:11:34 +00:00
martin 1a3bbabc29 Grrr, add another set of casts working around sc_aperbase having the wrong
type. We should fix this!

This makes it compile for 32bit sparc64 kernels.
2003-01-20 11:02:47 +00:00
simonb 4cde8adf99 Remove variable that is only assigned too but not referenced. 2003-01-20 07:34:37 +00:00
simonb d081ef5767 Remove unreachable break after return. 2003-01-20 07:28:26 +00:00
simonb d0c3a04b6a Remove variables that are only assigned too but not referenced. 2003-01-20 07:25:04 +00:00
simonb bbd9776970 Remove variable that is only assigned too but not referenced. 2003-01-20 07:20:01 +00:00
simonb d7b879c6ec Grrr. So much for my ability to use grep(1) effectively. Pointed out
by Stephen Degler in private mail.
2003-01-20 07:12:12 +00:00
simonb 276fd1665c The Double-Semi-Colon Police. 2003-01-20 05:29:53 +00:00
simonb 6af195bf29 Remove variable that is only assigned too but not referenced. 2003-01-20 04:25:46 +00:00
simonb 188094a61f Remove variable that is only assigned too but not referenced. 2003-01-20 04:10:26 +00:00
simonb 4a67cf4f79 Only declare and set the "info" variable #ifndef SCSIVERBOSE. 2003-01-20 04:08:44 +00:00
simonb d9220af5c4 Remove unreachable "break"s after "return"s. 2003-01-20 02:29:56 +00:00
simonb e53ee11473 Use u_int variables for some variables that are passed to
functions that expect u_int parameters.
Remove a semi-colon after the trailing brace of a function.
2003-01-20 02:16:55 +00:00
soren 12490413be Typo. 2003-01-20 01:50:31 +00:00
soren 0a8d7994d1 Attachment for the HD44780 display and keypad on the front of Cobalt machines. 2003-01-20 01:26:12 +00:00
soren ec3de7e879 Driver for the Hitachi HD44780 used in many small LCD panels.
Written by Dennis Chernoivanov.
2003-01-20 01:20:50 +00:00
rafal 537bf9a526 Change DS1286 definitions to start with DS1286_ rather than DS_ so these and
DS1687 definitions are easier to distinguish.
2003-01-19 22:20:43 +00:00
thorpej b97e4c2136 Merge the nathanw_sa branch. 2003-01-19 16:50:16 +00:00
rafal 6d00714de4 Add CMU license since this did start out as a copy of mc146818reg.h, which
is under the CMU license.
2003-01-18 22:13:18 +00:00
rafal d402607ec3 Add register definitions for the Dallas Semiconductor DS1687 and succesors,
a series of Y2k-compliant multiplexed-bus RTC chips.  At the lowest levels,
the DS1687 and successors are register-compatible with the MC146818(A) and
DS1287, but also provide Y2k-safe date storage and other extra bits, like a
silicon serial number and larger amounts of NVRAM.
2003-01-18 22:07:21 +00:00
thorpej 41978f782e Merge the nathanw_sa branch. 2003-01-18 21:21:28 +00:00
tsutsui fcdaed16cd When the extra pad buffer is used, the number of TX segments
should be incremented than dm_nsegs.
2003-01-18 13:53:29 +00:00
tsutsui 49a0506ca0 Fix pasto and typos. 2003-01-18 13:12:55 +00:00
martin 13e2ed575e Merge botch. 2003-01-18 12:05:39 +00:00
thorpej c62a74e6d5 Merge the nathanw_sa branch. 2003-01-18 10:32:11 +00:00
thorpej af919042ec Merge the nathanw_sa branch. 2003-01-18 10:14:20 +00:00
thorpej b78f59b443 Merge the nathanw_sa branch. 2003-01-18 08:51:40 +00:00
bouyer 85393c3223 Redo previous in a better way:
allocate a static buffer, which is added at the end of short packets
to pad the buffer to ETHER_MIN_LEN - ETHER_CRC_LEN.
While I'm there fix 2 bugs:
in qeinit(), unload the right dmamap if bus_dmamap_load fails
in qestart, don't dmamap_load the mbuf if its len is 0.
Tested on simh-vax.
2003-01-17 15:45:59 +00:00
fvdl 3c2bd2b431 Add local_ctl_reg field to softc. 2003-01-17 11:17:08 +00:00
itojun c8012d9047 correct the use of m_tag. correct indentation (:set sw=8 ts=8 please,
jonathan)
2003-01-17 08:27:35 +00:00
itojun 40606ab8f2 switch from kame-based m_aux mbuf auxiliary data, to openbsd m_tag
implementation.  it will simplify porting across *bsd (such as kame/altq),
and make us more synchronized.  from Joel Wilsson
2003-01-17 08:11:49 +00:00
gendalia 1f71c142cd Add altima (broadcom) AC101L, phy for 3com 3c905cx-tx on nForce2 MCP-T 2003-01-17 06:23:52 +00:00
gendalia 6672d83048 regenerate to match miidevs, added ac101L phy 2003-01-17 06:21:13 +00:00
gendalia 3f50762f0c Add altima (broadcom) AC101L, phy for 3com 3c905cx-tx on nForce2 MCP-T. 2003-01-17 06:20:07 +00:00
matt f2d6a1d557 Make the DEFPA/DEFEA/DEFTA driver work on big-endian machines such as
powerpc or sparc64.
2003-01-17 02:43:40 +00:00
jonathan 1b7f3ca44b Grr. Fix consistent typo, to match what i actually tested before committing. 2003-01-17 00:24:29 +00:00
jonathan 21cd3a1948 Add register definitions for 5704 internal ASIC revision.
Add cpp definitions for the DMA control register fields needed for
5703/5704 configuration on PCI-X.
Add softc copy of internal"local control" register clobbered by reset.
2003-01-17 00:21:37 +00:00
jonathan a95f2651b7 regen from pcidevs rev 1.497:
Add pcidevs entries for more Broadcom 570x family variants.
2003-01-17 00:19:16 +00:00
jonathan c6f5d9974c Add pcidevs entries for more Broadcom 570x family variants. 2003-01-17 00:17:35 +00:00
jonathan ad77f4e6fb Enable the 5700 DMA bug and producer-pointer fixes, by setting the
quirk on all 5700 revision B devices. (These fixes have not been
tested against NetBSD recently; committing the fix and the enable separately
gives us flexibility about which fixes get pulled into the NetBSD-1.6 branch.)
2003-01-17 00:11:00 +00:00
jonathan 1484718092 Commit accumulated bge fixes:
* Add support for 5704C dual-channel chip with integral copper PHY (tested)
   and 5704S dual-channel SERDES/TBI gbic  (untested).  Add PHY DSP patch
   for 5704.
 * Update PHY DSP-code patch for bcm5401 to match latest Linux driver.

 * Add PHY DSP-code patch for 5703 (untested).

 * Update onchip buffer tunables to recommended values from Linux drivers.

 * Disable MWI access.  This chip family cannot hanlde PCI stalls
   in the middle of an MWI burst. The driver has heuristics to detect PCI
   line size, but under load, some PCI bridges may force stalls which
   the attach-time heruistics do not catch. Some PCI bridges never
   do this, so maybe it should be a  tunable option.

*  bcm5700 rev Bx chips have a race condition, where updating the
   Tx producer pointer goes un-noticed by the chip.  Workaround is to
   write the new producer-pointer value twice.

*  bcm5700 chips rev Bx wedge up if given  DMA descriptors of
   eight bytes or less. Once hit, only reovery is a watchdog timeout/reset.
   If the offending packet is retransmitted, the chip will wedge again...
   Check for teeny fragments in a Tx request, and either fold the
   teeny chunk residue into an adjacent mbuf, or m_dup the entire buffer.
   (NB: quirk not yet enabled; in-place folding tested only on FreeBSD.)

 * Add workaround for revision Bx bcm5700: chip bugs in decoding
   of PCI register writes may leave the hardware in (partial) powersave state,
   such that  writes to "indirect" registers do not work.
   Explicitly force chip into D0 state at attach time.

 * Accessing PHY registers with the bge chip in autopoll mode, when
   link-state is the process of changing, may cause the bge chip to
   assert PCI errors.   Workaround:   when doing miibus register access,
   save autopoll state, disable around access, and restore autopoll state.
   NB: issuing PHY resets may give a window where the problem still occurs.

 * Increase Tx interrupt-coalescing thresholds, to reduce Tx-done interrupts.
2003-01-17 00:02:56 +00:00
jonathan 1556fd569d Update first 16-bit word of 5401 DSP patch to match latest Linux drivers.
Add comment  saying what the magic values do: disable tap power management.
2003-01-16 20:02:05 +00:00
jonathan 0ecaf20a9d regen machine-generated files from miidevs rev 1.44 (bcm5704 phy) 2003-01-16 18:46:08 +00:00
jonathan 4b1bc17628 Add PHY entry for bcm5704c (copper) integral phy to miidevs.
Add 5704 phy and dsp patch, and untestsed dsp patch for 5703, to brgphy.c.
2003-01-16 18:43:40 +00:00
kanaoka ebd3830c6f Add support for SMC 8041TX 10/100 Ether PC Card. 2003-01-16 15:21:20 +00:00
kanaoka c3ce5c6811 Regen. Add SMC 8041TX 10/100 Ether PC Card. 2003-01-16 15:20:18 +00:00
kanaoka 424cccc1e5 Add SMC 8041TX 10/100 Ether PC Card. 2003-01-16 15:18:44 +00:00
gendalia 6fc88ea9a4 Add support for 3com 3c905CX-TX found on nForce2 MCP-T. 2003-01-16 01:02:06 +00:00
gendalia e203560afd add support for nForce2 MCP-T 2003-01-16 01:00:06 +00:00
gendalia 53ab5df4af regen after pcidevs is committed so the correct version number is embedded.
Thanks to wiz.
2003-01-16 00:45:57 +00:00
gendalia 4ae8b800fb Add 3com 3c905CX-TX and Nvidia nForce2 MCP-T ac-97, on the ASUS A7N8X Deluxe
motherboard, Chipset: NVIDIA nForce2 MCP-T
2003-01-16 00:32:46 +00:00
bouyer 2d7b577657 When padding to URL_MIN_FRAME_LEN, memset the extra buffer space used. 2003-01-15 22:40:34 +00:00
bouyer 93ac594a91 Add a #error message asking to fix frame padding (this driver doesn't
compile anyway).
2003-01-15 22:38:59 +00:00
bouyer 194fbd836f Use a properly zero'd buffer to pad the packet to ETHER_MIN_LEN-ETHER_CRC_LEN 2003-01-15 22:35:47 +00:00
bouyer bcae687139 Zero out the NIC memory when padding packet to ETHER_MIN_LEN-ETHER_CRC_LEN
sc->write_mbuf now return len of buffer, including padding.
Tested with a PCI ne2000.
2003-01-15 22:20:03 +00:00
bouyer fddee95ba4 Ragge said this chip should autopad, so just remove the check. 2003-01-15 22:12:31 +00:00
bouyer 65856947c5 Zero out the extra space stolen from mbuf to pad packet to ETHER_MIN_LEN
XXX should it be ETHER_MIN_LEN - ETHER_CRC_LEN ?
XXX2 we assume there are enouth space in the mbuf for the padding bytes.
     But other places in the code assumes this already.
2003-01-15 22:10:25 +00:00
bouyer 0a5eae1855 ragge said this chip should autopad, so just remove the check for len. 2003-01-15 22:08:08 +00:00
bouyer 8951e08c3c Hum, ragge said this chip should autopad, so just remove the check. 2003-01-15 22:05:38 +00:00
bouyer 847cb1fa0d Zero out the buffer when padding packet to ETHER_MIN_LEN-ETHER_CRC_LEN 2003-01-15 22:01:57 +00:00
bouyer ba7f2ad41b Zero out the NIC memory when padding packet to ETHER_MIN_LEN-ETHER_CRC_LEN 2003-01-15 22:00:43 +00:00
bouyer 4199421246 zero out the remaining of last mbuf when padding the packet to ETHER_MIN_LEN
XXX should it be ETHER_MIN_LEN-ETHER_CRC_LEN ?
XXX2 we assume there is enouth room in the last mbuf. The code already assumes
     this in other places.
2003-01-15 21:59:02 +00:00
bouyer fb3e100370 Use a properly zero'd buffer to pad the packet to ETHER_MIN_LEN
XXX should it be ETHER_MIN_LEN-ETHER_CRC_LEN ?
2003-01-15 21:56:06 +00:00
bouyer ab00572d4a Use a properly zero'd buffer to pad the packet to ETHER_MIN_LEN-ETHER_CRC_LEN 2003-01-15 21:53:18 +00:00
bouyer 84c7763ec2 Use a properly zeroed buffer to pad the packet to ETHER_MIN_LEN
XXX should it be ETHER_MIN_LEN - ETHER_CRC_LEN ?
2003-01-15 21:51:47 +00:00
martin c7d20c39f9 Fix typo - make it compile with DIAGNOSTIC. 2003-01-15 21:38:22 +00:00
augustss 16d56c01d2 Regen. 2003-01-15 13:36:23 +00:00
augustss 61f5ebcc50 Add Epson Perfection 2400. From kern/19856, Rob Quinn. 2003-01-15 13:35:55 +00:00
kent f22fb7c9b8 Fixed a problem that /dev/sound can not be opened in some cases.
auich_set_rate() modified audio_params::sample_rate to actual
sample rate though auich_set_params() rejected sample rates
other than some specific rates.  For example, setting 8000Hz
with auich_set_params() modified sample_rate to 7998Hz in the
case of overclocked AC97 codec, and calling auich_set_params()
again returned with EINVAL because sample_rate was 7998Hz and
auich_set_params() rejected 7998Hz.

For now, auich_set_params() never modify audio_params::sample_rate.
2003-01-15 04:49:35 +00:00
wiz 0bd71f2dbc Recognise tuner on WinTV-GO-FM. From PR 19844 by Wolfgang S. Rupprecht. 2003-01-14 11:09:40 +00:00
mrg b45e7ba10d add detach support 2003-01-14 02:23:29 +00:00
tron a7bc8e6057 Add support for Epson Perfection 1260. 2003-01-13 21:51:30 +00:00
briggs 5d3fcb5487 Add dmover to the list of SUBDIRs. 2003-01-13 19:49:59 +00:00
tron ced7282b45 Regen from "usbdevs". 2003-01-13 17:26:33 +00:00
tron 341e2f7441 Add Epson Perfection 1260 scanner. 2003-01-13 17:25:20 +00:00
bouyer 4ceef3ad68 For short (< ETHER_MIN_LEN) packets, supply a zero'd buffer for the extra
bytes to make sure the chip won't send random data.
2003-01-13 17:00:18 +00:00
mrg 090790c7a7 pull across the quirk table from the wss@pnpbios driver and use it identically.
now wss@acpi works on my dell inspiron 3500.
2003-01-13 13:01:15 +00:00
jmcneill d81b190541 Why do I always think 'evaluate' and type 'evalulate'? 2003-01-13 06:26:10 +00:00
toshii 389a24609c Use the correct byte positions to read data returned by DVD_LU_SEND_RPC_STATE. 2003-01-13 03:32:56 +00:00
fvdl 4726f033ed Use 'int' in the SCI interrupt message, not 'irq'. The number in question
is a global ACPI interrupt number.
2003-01-13 01:24:11 +00:00
uwe 333e0ca8a9 Quick patch to allow the (only) screen to be configured with
wsconscfg(8) when it's not being used as the console.
2003-01-12 21:37:59 +00:00
tsutsui 6d0bdd7f1b Don't use non-ASCII chars in comments. 2003-01-12 13:38:27 +00:00
tsutsui 76ce5f5560 Add entries for vt220l8x16 and vt220iso8x16. 2003-01-12 13:12:42 +00:00
tsutsui e16295484c Add another 8x16 pixel VT220 font with ISO8859-1 charactors.
Generated from sys/arch/atari/dev/font_8x16.c rev 1.2.
2003-01-12 13:11:28 +00:00
tsutsui 28f92b4adc Add 8x16 pixel VT220L font generated from /usr/share/wscons/fonts/vt220l.816,
which is derived from pcvt.
2003-01-12 13:08:47 +00:00
jdolecek 6c334c1ee1 fix mistake in the attachment, which caused the device interrupt handler
to not be properly setup
fix provided in PR kern/13621 by ITOH Hideki
2003-01-12 12:53:36 +00:00
christos 0f9b5cdd18 add some more flags used only in acpi.c 2003-01-12 01:15:50 +00:00
dsainty e648b82855 Changed the interface for passing output data between the bthci driver
and the back end Bluetooth device driver.  The device driver now
allocates a suitable buffer on behalf of the bthci driver, and bthci
fills the buffer before despatch.

This saves an ugly temporary allocation (in bthci) and memory copy (in
the USB driver) per write, and also works better with the
sockets-based interface I'm experimenting with.
2003-01-11 06:12:09 +00:00
dsainty 48dd536ca4 Add bthci_util.c 2003-01-11 05:46:11 +00:00
dsainty 23127acc05 Bluetooth HCI protocol constants 2003-01-11 05:44:08 +00:00
dsainty ba8e090575 Utilities for use with Bluetooth drivers 2003-01-11 05:41:57 +00:00
augustss fef43d3aa9 Regen. 2003-01-10 16:42:04 +00:00
augustss 205035d2fa Add two Intel PCI-PCI bridges. 2003-01-10 16:41:39 +00:00
augustss a9dbc85017 Try to get full device descriptor a few times. This makes some slow
devices work.  From FreeBSD.
2003-01-10 11:19:13 +00:00
augustss 89b8fd8b00 Regen. 2003-01-10 11:13:51 +00:00
augustss 7d481b8bc1 Add Epson 1660. From kerm/19767, Neil Short. 2003-01-10 11:06:58 +00:00
augustss cd3665ed2a Add Epson 1660. From kern/19767. 2003-01-10 11:06:13 +00:00
mjl f8a4b3b1a8 Make this work on big endian platforms (mostly from OpenBSD):
Uploaded scripts work better if they are little endian, as the
card's engine expects, so convert to le first.

Also clean up attach routine a bit (use pa_id and PCI_REVISION
instead of fetching it ourselves).

This makes the driver work on my macppc G4, it can decode and
display video and tuner input. Sound does not seem to work, but
this may be my wonky formac bktr-for-macintosh card.
2003-01-10 01:38:52 +00:00
gehenna aab035b2c2 Add quirk for NeoDio ND3050. 2003-01-10 00:52:13 +00:00
gehenna cea6e962cb Regen. 2003-01-10 00:50:55 +00:00
gehenna c77255a12b Add NeoDio A 6-in-1 Flash Device Controller with USB Interface. 2003-01-10 00:50:00 +00:00
thorpej a5fa1cfd6a Use PRIx64 to get the correct format for 64-bit hex numbers. Don't
need \n at the end of a panic().
2003-01-09 19:16:30 +00:00
pk d15d3cbfc0 Add two disks capable of doing synchronous transfer mode, but don't
report SCSI2: "MICROP 1924" and "FUJITSU M2266"
2003-01-09 12:25:00 +00:00
jdolecek 98449270da need to select proper IST for interrupt - IST_NONE is almost certainly not
right

this makes fdc@acpi and com@acpi actually work on my machine; lpt@acpi
change untested, but should be same as fdc and com
2003-01-09 12:23:28 +00:00
jdolecek dca94cc235 _FDE is optional, so don't print warning messages about it failing
unless ACPI_FDC_DEBUG
array returned from _FDE contains UINT32 values, not UINT8; also change
  the magic number '14' to '5 * sizeof(UINT32)' for clarity
remove XXX for the tape presence comment; it's Just Okay to not use the info
fdc_acpi_getknownfds(): if fdc_acpi_nvtotype() returns NULL, don't
  attempt to attach the drive at all

XXX not tested
2003-01-09 12:18:38 +00:00
jdolecek b47e7ca732 use AcpiUtGetTypeName() to print object type name in acpi_print() 2003-01-09 10:35:29 +00:00
dyoung d2e09bb4b6 Oops. This turns off debugging again. 2003-01-09 08:52:19 +00:00
dyoung c4780f2706 wi_start: write an mbuf chain to the driver using wi_mwrite_bap,
which is safer than the loop there used to be here.

wi_mwrite_bap: if wi_write_bap fails, don't keep on going: this
  way you avoid writing garbage to the radio. First time you see
  an odd-length mbuf, copy the remainder of the chain to sc_txbuf
  and from there to the MAC. This way, you do not read an mbuf past
  the end of its data (occasionally you will cross a page doing
  that!) and you avoid expensive, excess seeks in the radio's own
  buffer chain.

wi_rx_intr: clamp the frame length told to us by the driver to the
  most bytes we can fit in our mbuf cluster.

I am still getting e-mails from my testers telling me how much
better this makes things.
2003-01-09 08:49:39 +00:00
jmcneill 41e9687a33 A few fallbacks:
1. If _FDE fails, fall-back to the old-style of drive probing.
  2. If _FDI fails on a drive, assume a 1.44MB 3.5" floppy drive.
2003-01-09 01:25:13 +00:00
jmcneill de1dbc74c4 Enumerate floppy disk drives via ACPI (mmm, faster booting). Known to work
with one floppy drive; not quite sure if the logic handling _FDI is right.
2003-01-09 00:22:39 +00:00
jmcneill 5df8dc3180 Support for 'plug and play' of floppy drives, to be used soon by the
ACPI fdc attachment. Reviewed by fvdl.
2003-01-08 23:51:11 +00:00
fvdl 9f4eb04ccb Print some OEM version info for the R/XSDT. Can be used to help identify
buggy ACPI implementations.
2003-01-08 16:52:49 +00:00
fvdl 524c804fc9 Define ACPI_MADT_DEBUG externally. 2003-01-08 12:33:03 +00:00
fvdl 422f1b7f01 Deal correctly with an MADT that is not found, or was already found
in acpi_madt_{un}map.
2003-01-07 23:05:08 +00:00
martin 9da7636a93 Add SUN4U magic to make nell work without things like WI_AT_BIGENDIAN_HACK.
XXX - need to move this (as well as the equivalent sparc stuff added
recently) outa here into sbus_machdep or something. We should not need
to know details of the actual bus_space implementation here.
2003-01-07 20:39:19 +00:00
fvdl 9352d5f785 * Add aux argument to functions called from apic_madt_walk
* Improve acpi interrupt fixup a bit
	* Source is an array, don't compare it to NULL, instead
	  look for an empty string to denote a link-device-less
	  entry.
	* For root PCI busses, try to use the _BBN method to get
	  numbering right.
* Add acpi_md_callback() function for MD handling after the init,
  but before * at acpi probing.
2003-01-07 18:46:48 +00:00
fvdl 8db111aeb4 Fix error in ODIOCGDINFO handling caused by previous change to it. 2003-01-07 18:35:04 +00:00
rafal f5d0c24512 Fix tyop 2003-01-07 16:37:31 +00:00
grant 3258109e78 regen 2003-01-07 12:20:10 +00:00
grant 0a49647d6b add Cambridge Silicon Radio and their Bluetooth USB Adapter. 2003-01-07 12:19:16 +00:00
matt 5d09a84558 Add multiple inclusion protection. 2003-01-06 21:02:18 +00:00
wiz 1035faff1d writable, not writeable. 2003-01-06 20:30:28 +00:00
wiz c053751628 compatibility, not compatiblity. 2003-01-06 13:26:24 +00:00
wiz c6f1277bfa synchronous, not syncronous. 2003-01-06 13:10:25 +00:00
wiz 7e681f7063 interrupt with two rs. 2003-01-06 13:04:54 +00:00
wiz 45ad5c9584 successful with only one l. 2003-01-06 12:46:05 +00:00
wiz 5e442fbbdd specified, not specifed. 2003-01-06 12:38:47 +00:00
wiz 6d8cbf7e43 descriptor with a c. 2003-01-06 12:14:26 +00:00
jdolecek b2b3b18bd8 change the 'GPE Block%d defined as GPE%d to GPE%d' message to
ACPI_DEBUG_PRINT(), rather than ACPI_REPORT_INFO(); it's not very useful
normally
2003-01-06 09:33:06 +00:00
jdolecek 855a497919 only print the dot-per-method thing if debugging ACPI_LV_LOAD, too
ACPI_LV_LOAD was chosen quite arbitrarily; perhaps the dot printing
should be removed altogether
2003-01-06 09:30:31 +00:00
sommerfeld df5660c9f3 Fix build glitch. 2003-01-05 23:23:43 +00:00
sommerfeld 7b74535513 When moving the cursor down, only scroll up if cursor is exactly at
bottom of scroll region; don't scroll if below scroll region.
Should fix kern/11827
2003-01-05 23:20:00 +00:00
christos 125b1a5718 Regen, err. Gen. 2003-01-05 22:34:35 +00:00
christos 11bbaf4453 Infrastucture for ACPIVERBOSE 2003-01-05 22:33:53 +00:00
christos c601b2355e add ACPIVERBOSE; while I am there, fix the eval_string function so it does
not leak.
2003-01-05 22:33:21 +00:00
jdolecek fd682b678b it's sufficient to install notify handler once
fix a typo in error printf in acpitz_get_integer()
#if 0 the warning when there is no _TZP
2003-01-05 12:16:22 +00:00
scw 584c708e83 When detaching a ulpt device, call vdevgone() for the corresponding
NOPRIME minor device too.
2003-01-05 10:19:42 +00:00
jmc 216f0f8cde Add some missing splx()'s noted by Krister Walfridsson 2003-01-05 08:11:33 +00:00
jmc da000bb65b Remove arbitrary bufcnt limit in at_output. 2003-01-05 08:03:45 +00:00
jmcneill 3e467b8109 Print something a bit more informative when displaying 'not configured'
messages for objects without a valid HID.
2003-01-05 06:19:05 +00:00
dsainty 97f7cada0b Make the ubt driver functional. This is an experimental, incomplete, but
actually functional driver.  It provides a local HCI interface to the
HCI-over-USB interface on standards-compliant Bluetooth USB devices.

Currently this device can be attached to the bthci driver for direct user-land
access to the device.
2003-01-05 05:20:20 +00:00
dsainty 466f76bf7b Make the bthci driver functional. This is an experimental, incomplete, but
actually functional driver.  It provides user access through a character
device to a Bluetooth HCI capable driver.

The device interface is the same (open/read/write) as the RAW HCI socket
(socket/recv/send) interface provided by the Linux and FreeBSD netgraph
Bluetooth stacks.  This allows a (very small) number of diagnostic programs to
be trivially ported and actually work.
2003-01-05 05:12:38 +00:00
dsainty 6957647e8b Move #define UBT_DEBUG from ubt.c to usb_port.h 2003-01-05 03:48:18 +00:00
fvdl eff9b6d311 Add some code to deal with the MADT. 2003-01-05 01:03:44 +00:00
wiz 617b132aac Spell output with two ts. 2003-01-04 23:43:02 +00:00
jmcneill 1e3dfcd74c Initial support for ACPI Thermal Zones. For now, we only export the zone
temperature to sysmon; in the near future we should be associating devices
in this thermal zone with this device so we can do active or passive
cooling on a zone-by-zone basis.
2003-01-04 05:36:03 +00:00
jmcneill 4d5c7fa4ba Attempt to attach drivers to devices without a valid HID so long as they're
not of type ACPI_TYPE_DEVICE.
2003-01-04 05:32:15 +00:00
lha 615a1ff234 From freebsd if_vr.c:1.43,1.56 and if_vrreg.h:1.11,1.14
- Windows put the chip in suspended mode, make sure we unsuspend
  it. 1.43, by Takefumi SAYO <stake@po.shiojiri.ne.jp>

- Detect the revision of the Rhine chip we're using, and force reset
  when the chip supports it. 1.65, by silby@freebsd.org
2003-01-03 19:01:09 +00:00