Commit Graph

14471 Commits

Author SHA1 Message Date
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
martin 6833c24639 Separate the sbus bus_space_tag_t used for access to nell hardware from
the self constructed little endian pcmcia bus_space_tag_t used for the
client drivers.
2003-01-03 13:28:54 +00:00
mrg 7bd617d237 part one of bus_space(9) fixes to enable bus spaces to override the
bus_space_{read,write}_[1248]() functions, which will allow 16-bit
PCMCIA support to work without additional hacks in MI drivers.
this option is not enabled yet.
2003-01-03 11:57:45 +00:00
dsainty 8644ee7fa0 Remove protoype for irframe_frame_available(), it's never implemented 2003-01-03 09:46:41 +00:00
junyoung 49f022f378 Fix typo. PR#19619. 2003-01-03 08:05:22 +00:00
takemura 285679b875 Added new ioctl command, WSMOUSEIO_GETID to tell touch panel identifier
for tpctl(8).
2003-01-03 04:36:26 +00:00
martin 12da8a0066 Call interrupt handlers from a soft interrupt to decouple them from the
(sometimes excessive) SPL assigned by the firmware to the sbus interrupt.
Protect access to hardware by splhigh().
2003-01-02 20:01:57 +00:00
dsainty 388a82e194 Knock off some XXX'd code: Use malloc() instead of a fixed length buffer
on the stack.
2003-01-02 11:00:21 +00:00
tron 3e383d4995 Regen from "usbdevs". 2003-01-02 09:20:39 +00:00
tron e2ecbdf4c0 Copy USB product id for HP DeskJet 1220C from FreeBSD-current to fix
build problems in "usb_quirks.c".
2003-01-02 09:20:21 +00:00
dyoung ea6658283d Since the I/O and memory enable bits are written to the PCI CSR by
the PCI bus code, and because wi(4) does not use bus-mastering, we
may entirely skip writing the PCI CSR.
2003-01-02 06:26:49 +00:00
imp 906987bba8 Merge changes from FreeBSD:
o HP 1220C
o Sanyo SCP-4900 (needs UQ_ASSUME_CM_OVER_DATA to work with umodem)
2003-01-02 04:19:00 +00:00
imp ca15bf77d6 Sync to usbdevs 1.286 2003-01-02 04:04:23 +00:00
imp abf9e63902 Add Sanyo SCP-4900 3G phone. 2003-01-02 04:01:46 +00:00
dsainty 439063014c Initialise uhubdebug so that it's patchable in a kernel image 2003-01-02 03:20:09 +00:00
augustss 25ffe0e71a Regen. 2003-01-01 16:36:51 +00:00
augustss 16de3525ca Add Vivitar camera. From OpenBSD. 2003-01-01 16:36:20 +00:00
augustss 0ac88e0baf Don't try to use 1284 mode. 2003-01-01 16:32:58 +00:00
augustss f2590fdb81 Reissue the MAXP command on resume. From FreeBSD. 2003-01-01 16:25:59 +00:00
augustss 8789d465b2 Try getting string descriptors in a slightly different way to works around
some problematic devices.  From Alexander Kabaev <kan@FreeBSD.ORG>.
2003-01-01 16:21:50 +00:00
toshii 086cbf5710 Assign NULL to sc_pipe after closing, so that usbd_close_pipe isn't
called twice.  At least in NetBSD, the detach function is called when the
device is removed, even if the attach function has failed.
This is probably the cause of panics reported in kern/19326.
2003-01-01 15:55:48 +00:00
mrg ea304c3f89 make cd18xx_ccr_wait() actually wait for the CCR to settle. 2003-01-01 07:46:20 +00:00
dyoung b356d306f5 For confidence's sake, enable I/O and memory accesses (which were
previously NOT enabled), but do not enable bus-mastering (which
was previously enabled, but which neither Lucent nor Prism support).
2003-01-01 02:36:54 +00:00
dyoung 18d05b8362 A Prism firmware participating in an IBSS network will not send a
LINK_STAT notification for every change of BSSID, so the firmware's
BSSID and the driver's BSSID will get out of sync. This has two
bad affects. First, because the 802.11 framework filters received
packets based on BSSID, many packets can be dropped before the
driver adopts the firmware's BSSID.  Second, ifconfig's tells a
misleading BSSID to the operator.

This problem is most apparent in networks where every station does
not hear every other. I reproduce these conditions in an office by
removing/replacing the antennas on my 802.11 cards.

As a solution, in IBSS mode, the driver will ask the firmware for
the BSSID every five seconds. Also, whenever the driver receives
a frame carrying a different BSSID than the driver's BSSID, then
the driver asks the firmware for the BSSID before handing the frame
to ieee80211_input.
2003-01-01 02:06:47 +00:00
tron ed7e94b443 Use bus_space_write_2() to write the 16 bit register "EMU_TIMER" which
should fix PR kern/15663. Patch supplied by Yorick Hardy via GNATS.
2003-01-01 00:36:29 +00:00
thorpej 703e7687a9 Use aprint_normal() in cfprint routines. 2003-01-01 00:16:46 +00:00
thorpej da0fbadf93 Oops, missed a printf that should be an aprint_normal. 2003-01-01 00:12:06 +00:00
thorpej 72a7af27b0 Use aprint_normal() in cfprint routines. 2003-01-01 00:10:15 +00:00
thorpej 89ef67a28c Nothing cares about NSYSMON anymore; delete it. 2002-12-31 22:47:48 +00:00
fredette 2068a40cc7 Removed esm_freemem(), which isn't used any more. 2002-12-31 13:10:59 +00:00
augustss d202c97c46 Fix some messages and some formatting. 2002-12-31 11:23:34 +00:00
dyoung 053c1688c8 Per discussion in PR 18794, fix PCI resets. Alas, this does not
seem to fix PR 18794.
2002-12-31 06:33:20 +00:00
jmcneill 3893537d91 If we have a valid UID but it's a null string, display '<null>' rather than
nothing at all.
2002-12-31 05:59:53 +00:00
explorer 59e0238f99 add envsys support to acpi A/C adapter and batteries. This is still a work
in progress, much like the rest of ACPI.
2002-12-31 05:26:56 +00:00
dsainty 3204b83aa5 Be somewhat more persuasive about enabling the port on a port reset.
USB protocol dictates that the port enable must be implied by the port
reset. To implement this on (at least) the VIA VT83C572 this means we
need to wait around tweaking the chip state until the port actually
transitions to enabled (or the device goes away).  Likely fixes
kern/11018.
2002-12-31 02:21:31 +00:00
dsainty 0bdb52527a CONSTCOND away some lint warnings 2002-12-31 02:04:49 +00:00
augustss 914250b8f3 Another quirk. 2002-12-31 00:50:07 +00:00
augustss 13d6b87d32 Use a somewhat bigger buffer for the vendor string. 2002-12-31 00:39:11 +00:00
augustss 185623c571 Use correct values to compute record high water mark. From kern/19614 by
Ron Roskens.
2002-12-31 00:33:10 +00:00
explorer a26c9e1804 When a battery isn't present, display that rather than bogus values. 2002-12-30 13:06:43 +00:00
chris eabbfc15c6 Fix build break.. 2002-12-30 10:19:59 +00:00
explorer 6ce13e9a31 clean up printing of battery info. This includes other changes I've toyed with, #if 0'd out 2002-12-30 09:37:50 +00:00
matt db2f223f09 Print out the pnpname that was matched. 2002-12-30 09:33:25 +00:00
matt 839550b347 remove declaration of wss_acpi_config_interrupts since it no longer exists. 2002-12-30 07:29:26 +00:00
jmcneill 165d7516fb Again, in acpibat_get_status, bail rather than continuing if the package
we receive contains less elements than expected.
2002-12-30 06:20:02 +00:00
explorer 89f72704d1 remove redundant defines 2002-12-30 06:16:10 +00:00
fredette 5620d08cca First cut at recording support for the ESS Maestro-2 and 2e.
16-bit mono recording seems to work OK.  16-bit stereo recording
is missing the left channel for reasons unknown, fixes welcome.
8-bit recording still unsupported.
2002-12-30 05:23:27 +00:00
jmcneill 46e00cd6f7 Oops, I didn't mean for that commented out verbose flag to make it into the
last commit -- uncomment it again.
2002-12-30 04:52:13 +00:00
jmcneill e49259c17a If we receive a battery information package with less than 13 elements,
cleanup and return rather than trying to continue anyway.
2002-12-30 04:47:22 +00:00
explorer f7981239d7 update 2002-12-30 04:03:04 +00:00
explorer 6d15b43548 add atheros communications, Inc. AR5001 reference goop. This is what the 2.4 Ghz / 5 Ghz linksys cardbus card has inside. 2002-12-30 04:02:22 +00:00
dsainty 3d3cc353c3 extern references to debugging globals that really exist elsewhere 2002-12-30 02:44:32 +00:00
jmcneill 9459fbd817 Allow ACPI_EXTRA_DEBUG without ACPI_DEBUG 2002-12-30 01:56:44 +00:00
ad 91d54c750b In dzkbd_attach(): set dzi_ls for the console keyboard, too. 2002-12-29 19:30:57 +00:00
jdc 50b0738c11 Match the D-Link DWL650H.
Tested on i386 and hpcarm.
2002-12-29 12:11:45 +00:00
jdc 157591d35a Regenerate (DWL650H addition). 2002-12-29 12:06:34 +00:00
jdc d354b364e4 Add D-Link DWL650H wireless card (a different product than the plain DWL650). 2002-12-29 12:04:48 +00:00
thorpej 18e5ffe231 Fix typo. 2002-12-28 23:07:18 +00:00
uwe 0982def9d8 Sync US map with reality. Rename what used to called "us" map to
international.  Drop Hungarian map that is a proper subset of
international map (and I strongly suspect the "Hungarian" is a
misnomer in the first place).  Adjust hpckbd_keymap_table accordingly.

With this change selecting "US" in hpcboot will give you real US
layout.  Selecting "Hungarian" will give you international layout and
I think hpcboot shall be changed accordingly.

I'm not sure if there's separate "German" layout for hpcs.  I think
any layout that is not different from us/international on the primary
layer shall be handled with wsconsctl.
2002-12-28 22:50:09 +00:00
kristerw cfdca0df6b Remove a spurious ;. 2002-12-28 20:06:09 +00:00
jmcneill fdcb4005e7 Correctly pass the proper DRQ down to the common fdc driver. 2002-12-28 19:53:50 +00:00
jmcneill 18e5fbcc75 Add an fdc at acpi(4) attachment 2002-12-28 19:31:35 +00:00
jmcneill 57713b735f We no longer need to delay the call to wssprobe, so remove the disgusting
config_interrupts hack.
2002-12-28 18:59:52 +00:00
uwe b83d14425f jornada6x0_us_keytrans: Map "del" key to 211 ("Del") not 14 ("<=").
Our default keymaps map "<=" to KS_Delete (i.e. vt-style rubout)
anyway, so default behavior is not changed, but some people might
prefer to map "<=" and "del" differently.  Let them distinguish
between the two.  Fix the flying windows key mapping it should be 219,
not 221 (menu).  Drop non-existent keycode 125.
2002-12-28 17:49:01 +00:00
jmc 549904564e Implementation of page table support for 64k or greater transfers. This should
also handle uio structs passed in as well. All standard filesystem actions
are working at this stage (can copy, execute, mount, umount, fsck, etc).
2002-12-28 10:54:47 +00:00
jmc ae8cc0726d Move SBP data area's below the 4G mark as some broken devices seem to clip data
address's to 32 bits.
XXX - Need to move the if_fw fifo addr as well but this needs some testing
2002-12-28 10:52:41 +00:00
jmcneill e4db50c7b9 Add IBM0071, until we have access to the Compat Ids. 2002-12-28 10:19:06 +00:00
matt 60040239dc Only remember the softc if was for the keyboard port. Only try to attach
the console to a keyboard port.
2002-12-28 10:14:43 +00:00
matt d00c47eb40 Add IBM3780 (PNP id for IBM's trackpoint). Also consider anything starting
with PNP0F as a mouse.
2002-12-28 09:44:11 +00:00
matt 17fb086421 Add a pckbc acpi attachment (it compiles but it untested). 2002-12-28 08:45:31 +00:00
matt da1df3d58f Make sure we record the type of irq as well as its number. 2002-12-28 08:44:43 +00:00
jmcneill ea66278262 In com_acpi_attach, set sc->sc_iot unconditionally. 2002-12-28 08:14:39 +00:00
jmcneill 3b08a81ed6 Add an lpt attachment to acpi(4) 2002-12-28 08:04:28 +00:00
matt 8ff6f8feb3 Fix an uninitialized variable. 2002-12-28 07:37:51 +00:00
matt 99597db362 make id const, and use it for the strcmp since we went to the trouble
of remembering it.
2002-12-28 07:34:04 +00:00
matt f388356f39 const the pnpid array. 2002-12-28 07:30:33 +00:00
tsutsui 26f0714b7f sparc/tab cosmetics. 2002-12-28 07:11:24 +00:00
jmcneill 33ac82dfff Add 'com at acpi' and 'wss at acpi' glue. These are both working great on
my ThinkPad 600E.

XXX isa_dmainit isn't called early enough for the 'audio at wss' attachment
XXX to work, so I'm deferring the call to 'wssattach' until later on. This
XXX should be fixed soon.
2002-12-28 06:20:15 +00:00
jmcneill c8111254a1 Pass ISA chipset information through to ACPI devices, to allow for porting
of pnpbios(4) glue to acpi(4).
2002-12-28 06:14:07 +00:00
dsainty 47fa5a292f An earlier revision of the data sheet documented MIR data rate support,
576000bps and 1152000bps.  In the current published version of the data
sheet the MIR support documentation is gone, and the MIR mode bit is
documented as reserved.  Possibly the device has a design flaw affecting
the MIR data rates?  Document here that this information came from an
earlier data sheet, but leave MIR support in for the moment.
2002-12-28 06:04:18 +00:00
dsainty 912898cad7 Update reference to online data sheets 2002-12-28 05:35:34 +00:00
dsainty 4bfd7daa84 This device has a single FIFO shared by both incoming and outgoing data.
If a series of outputs are delivered to the device before the kernel thread
has polled for input data, any input data will be lost.  As a
counter measure, always force an input check between outputs.
2002-12-28 04:55:30 +00:00
dsainty 562d1e4603 Delinting - as the data passed to ustir_dumpdata() is always u_int8_t,
use that type in the prototype too.
2002-12-28 04:28:39 +00:00
dsainty df379868e8 Delinting - don't treat ennumerated types as booleans 2002-12-28 04:23:40 +00:00
dsainty 6e4d13a881 Delinting - sprinkle some ARGSUSED 2002-12-28 04:16:33 +00:00
mrg 44b02011f4 tweak some comments 2002-12-28 02:47:35 +00:00
mrg 39493d781e this file is way out of date... 2002-12-27 15:17:36 +00:00
dyoung 1a8833b7c1 On Lucent cards, indicate that changing BSSID with SIOCS80211BSSID
is impossible.  Never write to the Prism-only JOIN RID.
2002-12-27 08:29:46 +00:00
dyoung fb22424264 The RID for the RSSI->dBm adjustment is not supported by Prism
station firmware version <= 1.1.1.
2002-12-27 07:54:35 +00:00
matt 78b64fd232 Recognize BCM5703 phy. (with this and the bge changes, the bge0 on my
ASUS P4PE m/b is now working)
2002-12-27 03:15:52 +00:00
matt 9d04e25e82 Regen. 2002-12-27 03:14:23 +00:00
matt 2860168d98 Add BCM5703. 2002-12-27 03:14:06 +00:00
itohy ca7d3d53d6 Lookup and use the Ethernet address in the FCode PROM,
and avoid using MD myetheraddr() function.
This makes the driver MI, and closes PR kern/13797.

The PCI HME is a PCIO chip, which is composed of two functions:
	function 0: PCI-EBus2 bridge, and
	function 1: HappyMeal Ethernet controller.

The Ethernet address is (expected to be) in the PCI FCode PROM connected
to the EBus bridge (function 0) of the device.
Since the HME is on function 1, some magic is used to access to the PROM.

We don't have MI EBus driver since no EBus device exists (besides the
FCode PROM) on add-on HME boards.  The ``not configured'' message for
function 0 is what is expected.

The SPARC case is currently unchanged.  It needs interaction with OpenBoot.
2002-12-26 22:59:51 +00:00
matt a5201ab8fc Recognize AD1981 codec (0x41445370). XXX name is a guess but it follows
the existing pattern.
2002-12-26 20:56:52 +00:00
matt 5914ae08f9 Recognize BCM5702X and BCM5703X. Add a ONLY_PHY_1 quirk and use it.
Add support for getting the macaddr for 5703 (taken from FreeBSD).
2002-12-26 20:55:30 +00:00
matt 46531db96c Recognize Promise Serial ATA/150 TX2plus 2002-12-26 20:54:03 +00:00
matt 741e85a725 Regen. 2002-12-26 20:53:18 +00:00
matt fef7827774 Add Promise Serial ATA/150 TX2plus 2002-12-26 20:52:58 +00:00
pooka 0b31dc8e73 For the ES1370 do "best effort" rate selection for the FM DAC. The
card contains only one clock, which is already used by the other
DAC. The FM DAC can handle a few fixed-frequency choices.

thanks to Matthew Green for testing
2002-12-26 17:59:16 +00:00
christos 1ee98692bb Don't leak memory on double init, and don't panic on double fini. Emit
a message when diagnostic.
2002-12-26 12:01:42 +00:00
matt 629336e5c6 Regen. 2002-12-26 01:52:00 +00:00
matt d06eca3d63 Add some more BCM570x variants. 2002-12-26 01:51:27 +00:00
jdolecek a80733a697 fix typo in QE_CR_STAT_BITS - bit indication for EDEFER was wrong
Reported in kern/19557 by Ron Roskens
2002-12-25 08:24:30 +00:00
toshii c3e4f1d795 Fix broken programming of VSCALE_HI registers in yuv422_prog. 2002-12-25 06:40:27 +00:00
toshii 7eb93bf41f Consistently use BKTR_GEN_IRQ and BKTR_RESYNC instead of numbers.
Also, do some whitespace cleanup.
2002-12-25 06:20:11 +00:00
toshii 0c6bdb0df1 Merge FreeBSD rev.1.122:
Be consistent about "static" functions: if the function is marked
	static in its prototype, mark it static at the definition too.
2002-12-25 06:16:58 +00:00
tsutsui 2837b28251 If the chip is in byte access mode for system bus, we should set
FE_D6_SBW_BYTE, not clearing FE_D6_SBW_WORD (which is zero).
Pointed out by Christian Groessler.
2002-12-24 13:10:26 +00:00
jdolecek 94f0c1c2d1 emuxki_intr(): return 1 if interrupt was for us, 0 if not
this appear to fix occassional sample repeats on my dual CPU i386
2002-12-24 10:53:03 +00:00
augustss 095017c9ef Add quirk. From kern/19499, Werner Backes. 2002-12-23 12:42:53 +00:00
augustss 09b10d25e0 Regen. 2002-12-23 12:40:03 +00:00
augustss cb1f48b543 Add SIIG MULTOCARDREADER. From kern/19499 2002-12-23 12:39:36 +00:00
tsutsui f9fdb92c0f Always print the device name first in epic_pci_attach(). 2002-12-23 03:57:03 +00:00
tsutsui fe708bb3ae Set PCI_PMCSR more properly. 2002-12-23 03:23:00 +00:00
tsutsui ee29810638 Save PCI_PMCSR value correctly. 2002-12-23 03:06:39 +00:00
tsutsui 238efe4697 Replace magic numbers for power management control with PCI_PMCSR* macros.
XXX Should we use pci_get_powerstate() and pci_set_powerstate() in pci.c?
2002-12-23 02:58:36 +00:00
tsutsui b22b6283f3 Sync with if_rtk_pci.c:
- Fix typo in printf message.
- Don't use PCI_PRODUCT_DELTA_8139 (0x1360) for args of cardbus_conf_read()
  and cardbus_conf_write(); use CARDBUS_INTERRUPT_REG (0x3c) instead.
2002-12-23 02:19:22 +00:00
tsutsui b4354edb93 Don't use PCI_PRODUCT_DELTA_8139 (0x1360) for args of pci_conf_read() and
pci_conf_write(); use PCI_INTERRUPT_REG (0x3c) instead. (How does it work?)
2002-12-23 02:12:49 +00:00
tsutsui 199ad243a0 Fix typo in printf message. 2002-12-23 01:58:26 +00:00
kanaoka 31623769c9 Resolve conflict from acpica-unix-20021205. 2002-12-23 00:22:04 +00:00
kanaoka 932351b509 Import INTEL acpica 20021205 release. 2002-12-23 00:01:36 +00:00
kristerw 06c22c74ac sf_copy_small is not used anywhere. Remove. 2002-12-21 16:15:28 +00:00
kristerw 2ce6431736 wm_copy_small in not used anywhere. Remove. 2002-12-21 16:12:15 +00:00
kristerw 14d4c7d175 Move dp8390_debug to the #ifdef DEBUG section. 2002-12-21 15:24:42 +00:00
fredette 9d97e92d89 If the user is providing a mode value in AUDIO_SETINFO, that value
cannot change the recording or playback mode of the device, it can
only change other mode-like values (like AUMODE_PLAY_ALL).  Be very
explicit about fixing up the user's mode value based on the mode of
the device.  Before, giving AUMODE_PLAY_ALL could cause AUMODE_PLAY
to become set on the device, and once AUMODE_PLAY_ALL was set it
was impossible to clear.
2002-12-20 18:30:01 +00:00
jmc 8630685f69 Add support for page tables 2002-12-19 09:59:47 +00:00
jmc ef48ba7693 Add a minphys routine since the single largest packet is less than minphys() 2002-12-19 09:58:24 +00:00
jmc 31f02beb7c Add defines for supporting page tables 2002-12-19 09:56:10 +00:00
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