Commit Graph

619 Commits

Author SHA1 Message Date
thorpej
09c5f9cc49 TRUE -> true, FALSE -> false 2007-02-28 04:21:51 +00:00
macallan
f41db58cbf not quite complete yet driver for batteries found in ohare-based PowerBooks
no APM emulation or sysmon integration yet but some stuff is exposed via
envsys
2007-02-15 01:48:40 +00:00
macallan
9c80d19d08 don't use IPL_HIGH 2007-02-15 01:45:40 +00:00
macallan
78dc3781e9 - don't use IPL_HIGH
- attach batteries when present
- some cleanup
2007-02-15 01:44:54 +00:00
macallan
f3154089bb - don't go CUDA_IDLE before calling message handlers, that way we force all
writes they might issue to be delayed which keeps us from deadlocking
- don't splhigh() in cuda_intr() - usually we're there already. Instead do
  the splhigh()/splx() dance when we're polling
- remove some leftover debugging gunk
2007-02-05 18:26:06 +00:00
macallan
a64a26d4aa fix fallout from making OF_interpret compatible with the other OF platforms
noticed by Leon Zadorin
2007-02-05 04:02:01 +00:00
hubertf
142c2a33ba Remove duplicate #includes, patch contributed in private mail
by Slava Semushin <slava.semushin@gmail.com>.

To verify that no nasty side effects of duplicate includes (or their
removal) have an effect here, I've compiled an i386/ALL kernel with
and without the patch, and the only difference in the resulting .o
files was in shifted line numbers in some assert() calls.
The comparison of the .o files was based on the output of "objdump -D".

Thanks to martin@ for the input on testing.
2007-01-24 13:08:11 +00:00
he
ceeb812c89 Unify the declaration of OF_interpret() between sparc{,64} and macppc
by adding the "nargs" argument to the macppc version, and fix the macppc
ports uses of OF_interpret() accordingly.

Also move the declaration of OF_interpt() from macppc's autoconf.h to
ofw/openfirm.h.  This fixes the build of the macppc port.

Approved by macallan@.
2007-01-20 21:42:12 +00:00
macallan
38b072ded2 make some tables static to avoid collisions 2007-01-18 00:43:00 +00:00
macallan
15a3f9b614 fix accidential commit, this time really only add the bus_space_tag 2007-01-18 00:19:30 +00:00
macallan
c11af36bf1 pass a bus_space_tag to children 2007-01-18 00:17:22 +00:00
macallan
0990226c00 use sgsmix if present and appropriate 2007-01-17 23:34:29 +00:00
macallan
a17b551fce new drivers for pmu and cuda 2007-01-17 23:25:45 +00:00
macallan
02a1d394fc finding the console node / instance handle moved into machdep.c 2007-01-17 23:08:08 +00:00
macallan
398d6bdd70 prefix a hexadecimal address with 0x 2007-01-17 23:05:49 +00:00
macallan
7d1cc4454c for trackpads add a sysctl to control wether tapping causes button events 2007-01-14 23:59:06 +00:00
macallan
b2bac7650b don't pretend to support 8kHz since the chip really doesn't
noticed by Marco Trillo
2006-12-17 21:26:04 +00:00
macallan
b6131134e7 make this compile without wsdisplay 2006-12-16 05:05:50 +00:00
macallan
af3a3c2797 (hopefully) fix a panic when ofb attaches without being console 2006-12-16 03:31:46 +00:00
macallan
35a2b63b90 actually change the sample rate when asked to.
Fix provided by Marco Trillo in PR35204
While there also enable 24bit I/O.
2006-12-11 02:17:53 +00:00
macallan
610ea4a4c0 don't issue ADB commands if there's no adb node.
This should fix spontaneous poweroffs seen on PowerBooks that have no ADB
(last generation PBG4 which have only USB)
needs testing on more machines
2006-12-10 19:28:12 +00:00
macallan
74ab06b7a7 when powering up the mediabay wait two seconds before looking for devices
Without this CDROM drives wouldn't be found when hotplugged.
2006-12-10 02:41:30 +00:00
wiz
6919c6578c s/independant/independent/, from Zafer. 2006-11-24 22:04:21 +00:00
he
0b108ad573 Adapt to the wsmouse_input() change where we now require the 'w' axis. 2006-11-13 09:35:34 +00:00
plunky
57c0199dcf Tidy away wsmouse_input() abstractions and update
documentation to include the W direction.
2006-11-12 19:00:42 +00:00
macallan
4f70466a7c split ofb into one part that attaches right on kernel startup and one that
attaches to pci so we can build kernels with - say - machfb but without
ofb at pci.
2006-11-08 01:25:10 +00:00
macallan
0bb8ed626b allow IDE DMA on Heathrow again 2006-11-07 02:23:27 +00:00
tsutsui
23c5e05646 Remove a function declaration of zssoft() which was
inside #ifndef __HAVE_GENERIC_SOFT_INTERRUPTS.
2006-11-02 20:43:30 +00:00
tsutsui
ce97c50f55 Pass zsc_softc to zshard() directly rather than searching it in zshard().
Checking all zsc units in zshard() is efficient only on ports
which share one interrupt among all zsc units, like sparc or sun3.
On such ports, zshard() is established as a handler only once.

XXX1: more other MD zs drivers should be fixed similarly.
XXX2: zsc on macppc has independent interrupts for channel A and B,
      but MI z8530sc can't handle such configuration.
2006-11-02 20:05:04 +00:00
tsutsui
5e4ac42c65 macppc always defines __HAVE_GENERIC_SOFT_INTERRUPTS,
so remove #ifdef/#ifndefs against it.
2006-11-02 19:41:34 +00:00
jklos
89009eb679 Fix for PR 33667. Note that putting bmac_mediachange where thorpej
suggested doesn't fix this issue. Not a perfect fix, but much better than
leaving it as it was. Tested on several iMacs and a blue & white G3.
2006-10-18 21:37:48 +00:00
macallan
84da46d4d5 ansify 2006-10-15 21:23:19 +00:00
macallan
e57fef0a3e report button clicks when tapping a trackpad
Tested on a PB3400c and an iBook G4
2006-10-15 21:15:21 +00:00
elad
e8373398dc Adapt MD code to KAUTH_DEVICE_TTY_OPEN. Patch from Matt Fleming, thanks! 2006-10-01 18:56:21 +00:00
jmcneill
f135e0d607 Add "name" parameter to powerhook_establish, to aid debugging. No objections
on tech-kern@
2006-09-24 03:53:07 +00:00
jmcneill
3150bfdedd Don't use // for comments. 2006-09-24 03:47:09 +00:00
gdamore
490f9510c6 Convert macppc to generic todr. ok macallan@. 2006-09-13 03:37:20 +00:00
dogcow
f2d329dca0 remove more vestiges of CCITT, LLC, HDLC, NS, and NSIP. 2006-09-07 02:40:31 +00:00
macallan
9de94f8e2e trying to use IDE DMA on a Heathrow macio is busted so disable it for now. 2006-09-04 03:44:10 +00:00
matt
28ee68ae9b Make this compile. The "fixed" bus_space_tag_t is horrible. 2006-09-01 03:24:08 +00:00
macallan
3887e678eb use gain table for master volume as well 2006-08-23 03:25:31 +00:00
macallan
ef6b7fdb0e fix some KNF nits 2006-08-23 02:56:32 +00:00
macallan
aa34d188fa back out previous commit since it breaks console output when not using a
serial console
2006-08-15 01:53:26 +00:00
macallan
5f55aaa2e1 Add audio input support. From Magnus Henoch, fixes PR 32664 2006-08-11 20:37:43 +00:00
sanjayl
265929b20e 1st cut of Powermac G5 support (uses bridge mode). 2006-08-05 21:26:48 +00:00
ad
f474dceb13 Use the LWP cached credentials where sane. 2006-07-23 22:06:03 +00:00
drochner
e7c88abe60 Better explicitely specify the "ki2c" interface attribute,
so that the "config_found" can't hit "i2cbus".
Up to now, this relied on the fact that the i2cbus and ki2c
attach args both had a string as first element which was used
to distinguish. Now, interface attributes should take care
that attach arguments are not misinterpreted.
2006-06-26 18:37:53 +00:00
drochner
a3464e1d27 use the "i2cbus" interface attribute rather than putting a string name
into the i2cbus attach args
2006-06-26 18:21:38 +00:00
kardel
e11bb150ed avoid shadowing time while it still exists 2006-06-07 23:22:52 +00:00
elad
8ccb6c9341 integrate kauth. 2006-05-14 21:55:09 +00:00
jmmv
7a51d4dddc Add an extra cookie to the ioctl and mmap wsdisplay accessops that points
to the screen on which they are being called.  The driver cannot guess
this by itself but it is needed to implement, at least, the getwschar and
putwschar functions in the correct place.  There are no functional changes
yet.

Tested on i386 (vga, vga_raster, machfb, vesafb), macppc and sparc64.
Suggested and reviewed by macallan@.
2006-04-12 19:38:22 +00:00
thorpej
2be6494fc9 Use device_cfdata(). 2006-03-29 04:16:44 +00:00
lukem
a1f606d3fd Use the SI capitalization for "Hz", "kHz", and "MHz" in comments and strings.
Add a space between numbers and Hz unit.
2006-03-08 23:46:22 +00:00
thorpej
458b3e43f7 Use device_parent(). 2006-02-23 05:37:46 +00:00
macallan
6fa7cdbb77 also check child nodes when checking if we attach to what OF thinks is the
console since some Radeons ( and probably others ) can have more than one
display - in this case /chosen and ofb's node would mismatch.
2006-02-16 18:48:38 +00:00
macallan
dfd5d19b24 bail out when trying to attach to something that's not the console.
Fixes problems with more than one graphics card. Since OF doesn't set up
any secondary graphics devices anyway we don't lose anything.
2006-02-16 02:15:29 +00:00
macallan
53b4acd93d Add support for colour and virtual consoles 2006-02-12 21:00:46 +00:00
macallan
dbe2bf713a ansify, de-__P(), sprinkle static 2006-02-07 02:29:28 +00:00
jmmv
cd5689ac5a Fix build by correcting pbms_ioctl's prototype. 2006-02-06 20:13:25 +00:00
xtraeme
2d45c66ceb Add a pbms(4) manpage. Remove it from the source code and update TODO. 2006-02-05 18:38:34 +00:00
christos
8d7d99b57c powerbook 15" mouse driver from Johan Wallen. 2006-02-05 18:06:50 +00:00
xtraeme
b768917ecd ktrace-lwp fallout. ok'ed by skrll. 2006-01-20 15:41:28 +00:00
bouyer
bf1a4d2af5 properly use ata_channel->ch_ndrive:
- initialize it properly in the bus front-ends (all 2, exept in wdc_pcmcia.c
  for the "Sandisk CompactFlash Card" where it's set to 1)
- remplace hardcoded '2' by ata_channel->ch_ndrive in MI IDE drivers.

From Christos Zoulas in kern/32501.
2006-01-16 20:30:18 +00:00
chs
6cb72218d4 switch macppc to use the MI zstty driver.
add macppc's ZS_TXDMA hooks there.
2005-12-27 17:20:54 +00:00
perry
50a256a3a0 __asm__ -> __asm
__const__ -> const
__inline__ -> inline
__volatile__ -> volatile
2005-12-24 23:23:59 +00:00
perry
2d65de2479 bare asm -> __asm 2005-12-24 22:45:33 +00:00
perry
5f1c88d70d Remove leading __ from __(const|inline|signed|volatile) -- it is obsolete. 2005-12-24 20:06:46 +00:00
macallan
8ef937c9e4 return SCSI_CHECK in xs->status instead of xs->xs_status
This fixes a whole bunch of weird errors that plague(d) mesh forever, like
- failure to spin up drives automatically
- occasional bogus 'drive offline' messages
- LONG delays when trying to use a ZIP drive

It will probably expose more problems, we'll see.
2005-12-17 21:48:13 +00:00
christos
95e1ffb156 merge ktrace-lwp. 2005-12-11 12:16:03 +00:00
macallan
c2b05b7fce Check for 'i2c-bus' child and if found look for i2c devices there instead of
directly under the ki2c node.
Needed for newer ( 2005? ) OpenFirmware.
2005-10-07 23:53:11 +00:00
macallan
aaddad0a64 forgot to commit this along with ofb.c 2005-09-23 17:51:37 +00:00
macallan
178f17c813 - center output to match firmware settings when using the ROM font
- allow the super user to mmap() the PCI IO area corresponding to ofb at offset
  0xf2000000 - needed by some XFree drivers ( approved by Bill Studenmund )
- add a hack to allow mmap()ing offset 0xa0000 - 0xbffff if not covered by the
  regular framebuffer mapping at offset 0 ( disabled by default, use options
  OFB_FAKE_VGA_FB ) - this allows buggy XFree drivers which expect the VGA
  framebuffer at this address to work.
2005-09-22 18:16:56 +00:00
kleink
aece7a90fd Change the driver open function's conditional for overriding exclusive tty
use from checking the proc's uid to suser(9), and account for the use of
privileges.  Noted by David Holland in PR kern/31126.
2005-09-06 21:40:37 +00:00
macallan
d9f9caa094 - don't call ki2c private functions anymore, use iic_exec() to be a good i2c citizen
- use the deq driver to find the mixer device
- add controls for bass and treble
2005-08-10 14:32:08 +00:00
macallan
98735d6c6c dummy driver to represent the uni-n node in OF and attach its children 2005-08-10 14:30:15 +00:00
macallan
f5c3157174 split from ki2c.c 2005-08-10 14:29:08 +00:00
macallan
19df969aa4 dummy driver to represent the deq node in OF, marks the equalizer/mixer chip used by snapper 2005-08-10 14:28:22 +00:00
macallan
40f380a1cb allow to attach a normal iic bus, implements only iic_exec() and locking functions so far. 2005-08-10 14:26:46 +00:00
macallan
9e54758862 glue to attach thermal monitor chips directly to ki2c 2005-08-10 14:20:44 +00:00
jmmv
92e653c23c Let this build again by removing ieee80211_compat.h's inclusion (which does
not exist any more).
2005-06-23 14:33:33 +00:00
jmmv
f51dc0f3a7 Constify char* arguments to pm_printerr. Fixes the build when ADB_DEBUG
is set.

Note that only the first argument needed to be constified to solve the issue,
but given the usage of the arguments in the function, it's worth to constify
all of them.
2005-06-07 12:14:13 +00:00
nathanw
d198119b32 Don't shadow global aed_sc with local aed_sc.
XXX there shouldn't be a global aed_sc in the first place; the interface
among ADB devices is terrible.
2005-06-05 20:32:30 +00:00
nathanw
dda48d8e5e In ki2c_write() Apply __UNCONST() to the data parameter passed to
ki2c_start(). The same back-end routine does reads and writes, so
there's no real type-safety to be had here.
2005-06-05 20:16:35 +00:00
nathanw
a61e9e4fdf Pass NULL instead of (Ptr)0 to maintain function-pointer safety. 2005-06-05 20:04:47 +00:00
nathanw
a2c1d78ac7 Rearrange some of the ADB types and void * abuse to make -Wcast-qual
happy in the presence of the "volatile int flag" construct. Fix up a variety
of calls to pass NULL instead of (Ptr)0 to maintain function-pointer safety.
2005-06-05 20:03:55 +00:00
nathanw
a3ca1f00ff constify skiplist. 2005-06-05 20:02:01 +00:00
nathanw
30494f81df Fix shadowing of parameter with local variable. 2005-06-05 20:01:36 +00:00
nathanw
5774b0f330 Nuke the II and IIsi code from this file; it's never used on a
macppc. Remove variables and macros no longer used as a result.

This driver *still* needs an enema.
2005-06-05 18:49:49 +00:00
matt
8d53551666 cleanup const/volatile/shadowing 2005-06-03 21:38:05 +00:00
briggs
0e5d90ca36 Correctly match battery types. Old function would end up matching a
zero-length string.  Noted in PR port-macppc/30034 by Magnus Henoch.
Patched as in the PR.
2005-04-27 16:41:54 +00:00
briggs
fabe87766d Strip old "pm1" code. All PPC PMUs are "pm2" style. Two benefits:
* Cleans code up a bit, and
	* Reduces the call stack for PMU interrupts.
2005-02-01 03:24:29 +00:00
briggs
969369e173 Remove one level of interrupt redirection by switching on the ADB
hardware type and registering a Cuda or PMU interrupt handler
specifically instead of an intermediate interrupt handler.
2005-02-01 03:08:16 +00:00
briggs
c5d6d91dc9 Clear all interrupts set by cuda. From Michael Lorenz. 2005-02-01 02:54:17 +00:00
briggs
da18d7cc5e Add a PMU initialization call at ADB init time. This probes the machine
type for PMU / battery information, then uses that when getting battery
information for APM.  Allows older PowerBooks (pre-smart batteries) to
function with apm enabled in the kernel.  Thanks to Linux code for battery
information for these old batteries.  Something is still odd, though,
because a charging battery can show > 100% when it's near to full charge.

Enable more interrupts from PMU and handle PB3400 card eject buttons
properly, too.

Also use #defines for commands instead of raw hex codes.
2005-02-01 02:46:00 +00:00
briggs
2fd848709f Calculate and use seconds of power remaining for smart battery types. 2005-02-01 02:23:26 +00:00
briggs
66ca62ad71 Add some command definitions gleaned from Linux.
Add a field to pmu_battery_info to contain est. seconds of power remaining.
2005-02-01 02:22:31 +00:00
briggs
805b9387ef ADB_HW_PB is really ADB_HW_PMU. 2005-02-01 02:05:10 +00:00
briggs
dba5409d0b adb_direct.h contents are in adbvar.h. No need for duplication. 2005-02-01 02:03:01 +00:00
thorpej
a7ba88252d Eliminate use of M_HASFCS. 2005-01-30 19:03:23 +00:00
kleink
3d7886ed58 MPC601: Use RTC instead of TB. (While I'm here, update these to use
the inline versions from <powerpc/cpu.h>).
2005-01-26 20:51:47 +00:00
briggs
d9b6766216 Ensure i/o commands are allocated on 16-byte boundary by allocating 15
extra bytes and adjusting array starts.
Issue pointed out on port-macppc by Michael Lorenz.

Also remove extra print of the device name on attach().
2005-01-25 19:05:22 +00:00
matt
691566cdec Initialize zsconschannel to -1 so that it can't matched unless zscninit
is explicitly called to set it up.
2005-01-24 21:39:15 +00:00
kent
93293b9ec7 ansify and KNF 2005-01-15 15:19:51 +00:00
briggs
6f08c43eaa Drop default RX bufs to 2 so that they fit in one page of RAM.
Located by Tim Kelly.  Also discussed on port-macppc with Dave Huang.
XXX -- This driver really needs to be introduced to bus_dma(9).
2005-01-15 02:50:22 +00:00
kent
23b5d91433 merge kent-audio1 branch, which introduces audio filter pipeline to the MI
audio framework


Summary of changes:

* struct audio_params
  - remove sw_code, factor, factor_denom, hw_sample_rate,
hw_encoding ,hw_precision, and hw_channels.  Conversion information
is conveyed by stream_filter_list_t.
  - change the type of sample_rate: u_long -> u_int
  - add `validbits,' which represents the valid data size in
precision bits.  It is required in order to distinguish 24/32bit
from 24/24bit or 32/32bit.

* audio_hw_if
 - add two parameters to set_params()
	stream_filter_list_t *pfil, stream_filter_list *rfil
   A HW driver should set filter recipes for requested formats
 - constify audio_params parameters of trigger_output() and
trigger_input().  They represent audio formats for the hardware.
 - make open() and close() optional
 - add int (AUMODE_PLAY or AUMODE_RECORD) and audio_params_t parameters
 to round_blocksize()

* sw_code is replaced with stream_filter_t.
  stream_filer_t converts audio data in an input buffer and writes
into another output buffer unlike sw_code, which converts data in
single buffer.
  converters in dev/auconv.c, dev/mulaw.c, dev/aurateconv.c,
dev/tc/bba.c, dev/ic/msm6258.c, and arch/arm/iomd/vidcaudio.c are
reimplemented as stream_filter_t

* MI audio
 - audiosetinfo() builds filter pipelines from stream_filter_list_t
filled by audio_hw_if::set_params()
 - audiosetinfo() returns with EINVAL if mmapped and set_params()
requests filters
 - audio_write(), audio_pint(), and audio_rint() invoke a filter
pipeline.
 - ioctl() for FIONREAD, AUDIO_WSEEK, AUDIO_GETIOFFS,
AUDIO_GETOOFFS, and audio_prinfo::{seek,samples} for
AUDIO_GETINFO handle values for a buffer nearest to userland.

* add `struct device *' parameter to ac97_attach()

* all of audio HW drivers follow audio_hw_if and ac97 changes
2005-01-10 22:01:36 +00:00
chs
d65ac815a8 use a global variable to ensure that only one instance is configured
rather than requiring that its unit number be zero.
simplify by not pretending that powermacs can have more than 1 zsc.
2005-01-10 16:38:06 +00:00
chs
35cacfdeb8 de-__P, remove register, ansify. 2005-01-10 16:34:46 +00:00
briggs
1a7331ca01 cosmetic changes. 2005-01-08 04:24:05 +00:00
briggs
c5aa4aada2 Make obio match multiple times to allow access to devices on systems
where there might be devices under two I/O bridges (like PowerBook G3s).
Attempt to have devices under 'gatwick' share parental interrupt.  This
may still need some work, but a step in the right direction.
From Tim Kelly.
2005-01-08 03:24:58 +00:00
briggs
8dce4f9979 - If pm_pmgrop_pm2() fails, return after splx() -- there's no sense in
continuing.
- Note that there really needs to be bounds-checking on PMData.
2005-01-07 05:03:08 +00:00
briggs
f537a73f9e Increase buffer from 32 bytes to 128 bytes in PMData. I have observed a
response from the device that had 120 bytes of data.  The lack of any
bounds-checking in pm_direct.c allowed that data to smash the stack in
the interrupt handler.
2005-01-07 04:59:58 +00:00
briggs
38ffdc4f30 Back out part of previous. OF_open() works fine with /chaos/control, but
is a bit picky about interrupts.
2004-12-17 05:44:12 +00:00
briggs
6aba8dfd50 * Don't try to clear the screen if we failed to map it.
* Don't try to call OF_open for /chaos@F0000000/control@B -- it hangs.
2004-12-15 04:52:05 +00:00
briggs
f31e26a3dd Several changes from Michael Lorenz. Adapted from PR port-macppc/27680.
1. Reset SCSI bus & MESH on reboot to keep OF happy.
2. Tweak interrupt handler to clear interrupt register again if we get a
   CMDDONE interrupt with DMA active and a 0 fifocnt.  It's not clear why
   this is necessary, but is well documented in some other open source
   drivers.  This enables synchronous mode to work.
3. Dump a little more information if we do get a timeout.
2004-12-09 04:37:30 +00:00
briggs
d6a3e9bb82 Apply patch from Makoto Fujiwara (and Timm Wetzel) in PR port-macppc/15505
to enable internal modem for KeyLargo and Pangea.
2004-12-09 03:19:56 +00:00
thorpej
d5083f78be Use "struct scsipi_command" in internal command structures so that
we have enough space for 16-byte CDBs.
2004-12-07 22:23:45 +00:00
manu
6dfb732236 For and from bouyer@: call wdc_init_shadow_reg(chp) only after chp has
been initialized. Cause the hard disk to be detected again on the iBook G4,
and probably other machines.

Weee, I can run -current again!
2004-11-25 15:24:14 +00:00
thorpej
e9818f5b5e When adding/deleting multicast addresses, only whack the address
filter if the interface is marked RUNNING.

Fixes kern/27678.
2004-10-30 18:08:34 +00:00
yamt
18f717bb90 constify audio_hw_if, midi_hw_if, and radio_hw_if. 2004-10-29 12:57:15 +00:00
aymeric
a225650d5c postpone the calling of wdc_init_shadow_regs(), to follow MI changes.
Thanks to Jukka Andberg for finding that bug.
2004-08-23 08:54:39 +00:00
thorpej
9cc521a148 Move most of wdc_softc into a new atac_softc structure that contains
info common to all types of ATA controllers.
2004-08-20 06:39:37 +00:00
thorpej
4b51cecfc2 - Split the register handles out of struct wdc_channel into a separate
wdc_regs structure, and array of which (indexed per channel) is pointed
  to by struct wdc_softc.
- Move the resulting wdc_channel structure to atavar.h and rename it to
  ata_channel.  Rename the corresponding flags.
- Add a "ch_ndrive" member to struct ata_channel, which indicates the
  maximum number of drives that can be present on the channel.  For now,
  this is always 2.  Add an ATA_MAXDRIVES constant that places an upper
  limit on this value, also currently 2.
2004-08-14 15:08:04 +00:00
thorpej
ab20886f7b Don't bother with bits that tell of the presence of optional callbacks;
just check the function pointers for NULL.
2004-08-13 03:12:59 +00:00
mycroft
5e289bdf22 Don't pass in a MAC address -- yet. 2004-08-07 17:27:30 +00:00
thorpej
2ecdd552dc Add the notion of "shadow registers" to the wdc driver. These shadow
registers are registers that overlap with others on many controllers, but
which may actually be distinct on some controllers.  Right now, the two
shadows are:

- wd_status (usually overlaps wd_command)
- wd_features (usually overlaps wd_error)

Add a new helper function, wdc_init_shadow_regs(), used to initialize
the shadow register handles on controllers where they do actually overlap.

Partially from Jordan Rhody @ Wasabi Systems, Inc.
2004-05-25 20:42:40 +00:00
kleink
0e5d242328 Update for new pci_devinfo(9) signature. 2004-04-24 15:49:00 +00:00
matt
62fc149c0b Make this compile with XNS enabled 2004-04-18 23:32:21 +00:00
aymeric
8f2774036c . add a missing call to lockinit() in apmattach()
. while here, explicitly initialize three softc variables to 0
2004-04-15 11:03:15 +00:00
matt
653cfe6dbc Add latent generic soft interrupt support. 2004-03-24 19:42:04 +00:00
dbj
e3b3654ebb attempt to make these compile again after recent wdc changes. 2004-01-04 07:08:13 +00:00
thorpej
a963286f8d More wdc_channel structure member namespace cleanup:
- channel -> ch_channel
- wdc -> ch_wdc
2004-01-03 22:56:52 +00:00
thorpej
5bd80d8373 Rename "struct channel_softc" to "struct wdc_channel". 2004-01-03 01:50:52 +00:00
thorpej
527c829fa0 Rename:
- wdc_xfer to ata_xfer
- channel_queue to ata_queue
and move them to <dev/ata/atavar.h> so they can be used by non-wdc ATA
controllers.  Clean up the member names of these structures while at it.
2004-01-01 17:18:53 +00:00
thorpej
0beb075071 Simplify allocation of the channel queue. 2003-12-31 02:50:34 +00:00
mjl
054d8c4946 Initialize some auto vars to appaise gcc3. 2003-12-27 13:34:36 +00:00
grant
9427a0c717 add support for the Keywest I2C and snapper audio device, as found on
some iBook and PowerBook models.

this driver was written by Tsubai Masanari and further hacked on by
Jared D. McNeill to work on his iBook.

the driver is limited (master volume control only, and I haven't
tested recording) but has been functioning perfectly on my PowerBook
g4 DVI (ivory) for some time.

ok'd by matt.
2003-12-27 02:19:34 +00:00
dyoung
609617af90 Enable RSSI-based rate-adaptation for wi(4). This enables wi(4)-based
APs to run at "full speed" where before they ran at just 1 or 2Mb/s.
The AP will adapt the data rate for each client based on packet
losses and the received signal strength.

I have also enabled rate adaptation for STA mode and for IBSS mode,
but the hardware gives us less control over the data rate in those
modes.
2003-12-07 05:44:49 +00:00
keihan
29c72c57f0 netbsd.org -> NetBSD.org
All "netbsd.org" is now gone from src/sys/arch.
2003-12-04 13:05:15 +00:00
bouyer
6db04f6724 Adapt for new wdc regiosters array. Should fix port-macppc/23604. 2003-12-03 12:09:32 +00:00
dyoung
23d8f48692 Add data-link type DLT_IEEE802_11_RADIO to wi and atw. DLT_IEEE802_11_RADIO
lets you monitor radio stats like received signal strength, which
diversity antenna was used, channel/frequency, modulation, and data
rate.
2003-11-16 09:02:42 +00:00
chs
e07f0b9362 eliminate uvm_useracc() in favor of checking the return value of
copyin() or copyout().

uvm_useracc() tells us whether the mapping permissions allow access to
the desired part of an address space, and many callers assume that
this is the same as knowing whether an attempt to access that part of
the address space will succeed.  however, access to user space can
fail for reasons other than insufficient permission, most notably that
paging in any non-resident data can fail due to i/o errors.  most of
the callers of uvm_useracc() make the above incorrect assumption.  the
rest are all misguided optimizations, which optimize for the case
where an operation will fail.  we'd rather optimize for operations
succeeding, in which case we should just attempt the access and handle
failures due to insufficient permissions the same way we handle i/o
errors.  since there appear to be no good uses of uvm_useracc(), we'll
just remove it.
2003-11-13 03:09:28 +00:00
aymeric
a60cfa8cd7 . ANSIfy, make compile
. get rid of kbd_intr() and low-level keyboard handling
2003-11-04 19:18:05 +00:00
thorpej
dec320ebc1 Squish some recent compiler warnings. 2003-11-02 00:23:38 +00:00
dyoung
9a73ec4e1e Stop false uninitialized variable warning. 2003-10-27 22:48:20 +00:00
mycroft
1d19abe12e Remove optimization hack. 2003-10-26 16:34:07 +00:00
matt
421dd6cc28 Reorganize the way powerpc port install machine specific headers.
Use <powerpc/oea/bat.h> exclusively and remove <machine/bat.h> and
<powerpc/bat.h>.  Remove unneeded <machine/cpufunc.h>.  To insure
1:1 correspondence of <powerpc/FOO.h> to <machine/FOO.h> include
"../../powerpc/include/Makefile" in "arch/FOO/include/Makefile".
Incororpate <byte_swap.h> into <bswap.h> and then byte_swap.h
2003-10-20 00:12:09 +00:00
dyoung
ef743c64b6 Switch wi(4) to the new 802.11 layer. 2003-10-13 08:07:21 +00:00
bouyer
ce0aaad119 Adapt for wdcattach() prototype change, and deal with atabus in
device_register().
2003-10-08 11:12:36 +00:00
mycroft
eefae40298 Hide the use of config_interrupts() in one place. 2003-09-25 19:29:48 +00:00
mycroft
d40837608f 1) Use config_interrupts() to attach IDE and ATAPI drives. This eliminates
most polling.
2) Clean up some goofiness in pciide -- get rid of the whole "candisable" path
   (it's gratuitous) and simplify the code by calling pciide_map_compat_intr(),
   *_set_modes() and wdc_print_modes() from central locations.
3) Add a register writability and register ghost test to eliminate phantom
   drives more quickly.
2003-09-19 21:35:56 +00:00
chs
2ab420f918 recognize the latest version of the GMAC. 2003-08-24 18:02:00 +00:00
chs
86bd9c4a5e recognize the product ID used on the latest G4s. 2003-08-17 18:10:09 +00:00
agc
aad01611e7 Move UCB-licensed code from 4-clause to 3-clause licence.
Patches provided by Joel Baker in PR 22364, verified by myself.
2003-08-07 16:26:28 +00:00
nathanw
c021860e53 Correct comment in FORCE_FUNCTION_KEYS code; the 0x0b (eject) button is
on the f12 key, not f7 (the keycode value was correct for f12 already).
2003-07-28 13:21:29 +00:00
nathanw
3945b95a8d Add an option, enabled with the FORCE_FUNCTION_KEYS macro, that converts
"hotkey" abtn events into the function-key akbd events for the keys
that they're actually on (though the eject/f12 mapping is probably wrong for
the 12" PowerBook G4).
2003-07-24 21:01:39 +00:00
nathanw
6ff570e258 Make kbd_passup() an exposed function. 2003-07-24 20:56:24 +00:00
lukem
4b2744bf35 __KERNEL_RCSID() 2003-07-15 02:43:09 +00:00
he
db2df0cdd4 After the recent changes to if_ieee80211.h, we need to include
if_media.h earlier.
2003-07-09 14:30:29 +00:00
fvdl
d5aece61d6 Back out the lwp/ktrace changes. They contained a lot of colateral damage,
and need to be examined and discussed more.
2003-06-29 22:28:00 +00:00
darrenr
257443876f 'struct proc *' -> 'struct lwp *' as required to get GENERIC for macppc built 2003-06-29 11:02:21 +00:00
hamajima
b3120a356c Fix wdc_obio_dma_init() confused WDC_DMA_LBA48 with WDC_DMA_READ.
This was tested by jtb@netbsd.org.
2003-06-19 22:36:06 +00:00
hamajima
0659c2f915 Support the PowerBook G4 12-inch (and maybe 17-inch).
Kauai ATA, new obio chip, and Japanese keymap for WSDISPLAY_COMPAT_RAWKBD

I tested only 12-inch Japanese model.
2003-06-11 07:35:39 +00:00
bjh21
6a5af969d4 In mcstop(), don't clear IFF_UP. Other drivers don't mess with IFF_UP
internally, other than to set it when they gain their first address.
Every caller of mcstop() bar one was either preserving the state of IFF_UP
itself or was conditional on its already being clear, so the only effect of
this is to simplify the code and to change that one case, thereby curing
PR port-macppc/12088 (underflows on "mc" cause it to be taken down).
2003-06-04 21:30:06 +00:00
wiz
1ffa7b76c4 DMA, not dma nor Dma. 2003-05-03 18:10:37 +00:00
thorpej
a9caf2cae5 G/c the traceq; nothing uses it. 2003-04-09 01:55:14 +00:00
thorpej
0871fe346f Use PAGE_SIZE rather than NBPG. 2003-04-09 01:54:42 +00:00
thorpej
d470cda51b Use PAGE_SIZE rather than NBPG. 2003-04-02 02:56:40 +00:00
soren
ea477f4ba7 Forgot dummy printf. 2003-03-05 16:52:16 +00:00
soren
1f3cd4f95f Be more verbose about unsupported keys. 2003-03-05 16:18:24 +00:00
soren
889bcccc72 Attach on recent TiBooks.
XXX The mixer doesn't work yet.
2003-03-04 13:28:20 +00:00
manu
b09955adaf Merged mac68k and macppc keayboards, since they are the same. The file
could move to <arch/mac> if one day we create it.

Fixed french keymap: option was not mapped correctly, thus making
impossible to use |{}[] (tested).
Added jp keymap from PR/15438, and sf, sv, de and uk keymaps from OpenBSD.
(all untested).
2003-02-23 18:09:25 +00:00
briggs
0ba0225830 Initialize the framebuffer BAT with BAT_G, too. This marks the region
as (G)uarded, protecting it from the processor being too aggressive in
reordering and prefetching.  This allows OFB_ENABLE_CACHE to work on my
Powerbook G4.

Thanks to matt@ for suggesting this fix.  "It's the right thing to do."
2003-02-15 05:07:57 +00:00
tsutsui
9dc8f99b73 Add prototypes for ZS_TXDMA functions.
XXX Maybe we should have DMA hooks in MI z8530tty.
2003-02-15 02:28:22 +00:00
pk
be1188e00d Provide locking required by the interrupt handlers running at IPL_SERIAL. 2003-01-28 12:35:31 +00:00
thorpej
dbb0f0ebed Use aprint_normal() for cfprint routines. 2003-01-01 01:47:30 +00:00
thorpej
703e7687a9 Use aprint_normal() in cfprint routines. 2003-01-01 00:16:46 +00:00
christos
729ccbc9cd si_ -> sel_ 2002-11-26 19:49:00 +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
wiz
65cd27e43e Support 48kHz by using aurateconv.
Based on a patch by TAMURA Kent -- thanks!
2002-10-13 14:43:19 +00:00
jdolecek
a38b5eed0e adapt to latest dev/ic/wi* changes 2002-10-02 20:13:48 +00:00
thorpej
c5e91d447d Use CFATTACH_DECL(). 2002-10-02 04:55:47 +00:00
thorpej
f818766afe Declare all cfattach structures const. 2002-09-27 20:31:45 +00:00
provos
0f09ed48a5 remove trailing \n in panic(). approved perry. 2002-09-27 15:35:29 +00:00
gehenna
77a6b82b27 Merge the gehenna-devsw branch into the trunk.
This merge changes the device switch tables from static array to
dynamically generated by config(8).

- All device switches is defined as a constant structure in device drivers.

- The new grammer ``device-major'' is introduced to ``files''.

	device-major <prefix> char <num> [block <num>] [<rules>]

- All device major numbers must be listed up in port dependent majors.<arch>
  by using this grammer.

- Added the new naming convention.
  The name of the device switch must be <prefix>_[bc]devsw for auto-generation
  of device switch tables.

- The backward compatibility of loading block/character device
  switch by LKM framework is broken. This is necessary to convert
  from block/character device major to device name in runtime and vice versa.

- The restriction to assign device major by LKM is completely removed.
  We don't need to reserve LKM entries for dynamic loading of device switch.

- In compile time, device major numbers list is packed into the kernel and
  the LKM framework will refer it to assign device major number dynamically.
2002-09-06 13:18:43 +00:00
jdolecek
7403e3d736 put back NetBSD RCS Id removed in rev 1.6 2002-09-05 19:23:11 +00:00
aymeric
c8bc51526f Remove the key repeating feature.
It is asking for trouble and is useless for the X server.
We can add it back later if need be.
2002-08-14 13:02:58 +00:00
aymeric
9e10bd8738 akbd's now have a raw mode, and implement the WSKBDIO_SETMODE ioctl.
Adapted from OpenBSD.
2002-08-13 15:00:42 +00:00
chs
c86bd63e8e for ofb_enable_cache, turn on the BAT_M bit as well to prevent
the framebuffer from getting scrambled on MP systems.
2002-08-07 05:46:13 +00:00
bouyer
cd3752a0a3 Wrap debug printf in #ifdef DEBUG/#endif 2002-07-18 13:31:58 +00:00
matt
902fd38614 Update OFB_ENABLE_CACHE to search for a empty bat that does not
conflict the USER_SR or one of the kernel SRs.
2002-07-07 18:35:10 +00:00
junyoung
3d826105dc alloc_attr -> allocattr
Approved by Matthias Drochner.
2002-07-04 14:37:10 +00:00
nathanw
4ce40595e2 Pass through the PCI configuration ioctls, like vga_pci.c does. 2002-06-24 21:08:37 +00:00
itojun
524e044ee5 apm emulation, from openbsd 2002-06-18 05:22:50 +00:00
itojun
ddd8d90dc2 KNF (whitespace) 2002-06-18 04:35:02 +00:00
itojun
b00d5fb87a extern decl for adbHardware 2002-06-18 04:33:36 +00:00
itojun
43397e000b whitespace 2002-06-14 22:43:38 +00:00
itojun
a7ec566073 #define CAPS_IS_CONTROL will make caps key a control key (with weird
LCD indicator).  From: "Nathan J. Williams" <nathanw@wasabisystems.com>
(#define name taken from arch/i386/isa/pccons.c)
2002-06-14 22:43:05 +00:00
tsutsui
92896ac2a1 Add a null asm statement in adb_read_date_time()
to avoid wrong reordering by gcc-2.95.3 with -fgcse.

XXX Should we disable -fgcse everywhere?
2002-05-05 18:36:03 +00:00
tsutsui
87ebd3218c Backout previous. It is not timing problem, but gcc optimization bug. 2002-05-05 18:29:06 +00:00
tsutsui
8f9d2b8500 Add a delay() in adb_read_date_time() so that my Apus2000 can get
correct date in inittodr().
2002-04-29 10:15:29 +00:00
bouyer
e5727031fb Implement mstohz() as discussed on tech-kern, and use it in SCSI drivers
to convert xs->timeout to callout() parameter.
2002-04-05 18:27:45 +00:00
atatat
31144d9976 Convert ioctl code to use EPASSTHROUGH instead of -1 or ENOTTY for
indicating an unhandled "command".  ERESTART is -1, which can lead to
confusion.  ERESTART has been moved to -3 and EPASSTHROUGH has been
placed at -4.  No ioctl code should now return -1 anywhere.  The
ioctl() system call is now properly restartable.
2002-03-17 19:40:26 +00:00
wrstuden
bf3ef19b7d Only attach the first adb keyboard as the console kbd. Don't try for
the others. It is perfectly reasonable to have multiple adb keyboards,
and a number of multi-button mice have a fake kbd for the second and
third mouse buttons. Now my machine doesn't panic during boot when it
is trying to add a second ws console kbd.
2002-03-12 03:40:12 +00:00
itojun
ac36f7cb2c bring in latest ALTQ from kjc. ALTQify some of the drivers. 2002-03-05 04:12:57 +00:00
dbj
ed04b7ecb3 add a few missing keys, including f1-f12,home,end,next,prior 2002-03-04 04:03:36 +00:00
dbj
5f15cedc89 solve polled adb keyboard problems with dropped keys and unsynced caps lock
by queueing polled keys.
2002-02-24 20:20:20 +00:00
dbj
c467951c58 turn on polling using cnpollc 2002-02-23 10:51:50 +00:00
dbj
b97918f553 In adb_soft_intr, remove the packet from the queue before calling the
completion routine so that the completion routine can reentrantly
process the queue.  This happens, for example. when polling is turned
on by entering the debugger by keystroke.
2002-02-23 10:47:16 +00:00
thorpej
75dfddd49d Use bpf_mtap(). 2002-01-16 05:56:54 +00:00
dbj
d864c1582a tweak timings 2002-01-09 05:23:07 +00:00
dbj
f629228e87 Changes to the wdc(4) mi driver that add the WDC_CAPABILITY_SELECT
flag and a callback function which gets called whenever a target is
selected on a channel.

The macppc wdc driver needs to reprogram its timing register
differently for each target on a channel each time that target is
selected.  I also changed the ATA4_TIME_TO_TICK to use a divisor of
15, which brings our timing calculations consistent with darwin.

These patches fix problems on my dual usb ibook with combo dvd/cdrw
drive because the hard drive supports udma and the combo drive does
not.  Without turning off the udma timings in the configuration
register, I cannot access the non-udma combo drive.
2002-01-07 22:11:17 +00:00
dbj
0ac4681659 add support for kgdb over zs 2002-01-06 00:35:10 +00:00
dbj
920e8af571 add some error checks in adb_reinit, enabled with ADB_DEBUG and adb_debug 2002-01-02 20:30:45 +00:00
dbj
32eabd8148 if pm_adb_op times out waiting for an interrupt, attempt to take
an interrupt anyway, just in case.  Otherwise, report the timout condition.
This works around a problem in my ibook if a key is pressed after boot
and before adb is configured, such as when booting with -d.
2002-01-02 20:28:43 +00:00
dbj
9c182d4af3 defer attaching akbd as console until after it has
been initialized in akbdattach
2002-01-02 20:21:12 +00:00
tsutsui
064be15283 Use common macro to check message length. 2001-11-04 12:03:41 +00:00
augustss
1339e88a86 Add a new optional method, dev_ioctl, to the audio hardware driver interface.
It is called when an unrecognized ioctl() is performed on a device,
thus allowing ioctl()s that frob the hardware driver (like loading
microcode).
2001-10-03 00:04:47 +00:00
mycroft
9463168fe5 Use WSKBD_TYPE_ADB. 2001-10-02 21:05:39 +00:00
wiz
55fbb5ff57 Grammar improvements in comments. 2001-09-16 16:40:44 +00:00
wiz
456dff6cb8 Spell 'occurred' with two 'r's. 2001-09-16 16:34:23 +00:00
bouyer
a4638cc6d5 Properly initiatize sc->sc_wdcdev.set_modes for non-DMA controllers. 2001-09-09 16:08:49 +00:00
jdolecek
74954dadf9 use unsigned variable types as appropriate 2001-08-05 18:07:51 +00:00
tsubai
3070e77046 Remove (#if 0'ed) m68k asm codes. 2001-08-03 23:09:42 +00:00
bouyer
f7c2f13a54 Properly setup timings for ata-4 controllers, including UDMA modes.
Tested on a brand new ("dual USB ?") ibook.
2001-08-02 12:41:39 +00:00
mjl
ab94842af6 Add rnd entropy gathering. 2001-07-26 21:31:45 +00:00
tsubai
1b3871ef0f Change description of handler-ID == 195. 2001-07-26 11:36:40 +00:00
tsubai
bacce8fb4c Fix a warning when compiled w/o DDB. 2001-07-26 11:23:37 +00:00
bouyer
21bcee4ec1 Return() if piomode == -1 (i.e. we have no drives), avoid reading an array with
a negative offset.
Thanks to Andrew Cagney for pointing this out.
2001-07-25 20:26:33 +00:00
wiz
c5a6be17f4 bcopy -> memcpy, bzero -> memset, bcmp -> memcmp.
Reviewed by Matt Thomas, ok'd by Tsubai Masanari.
2001-07-22 11:29:44 +00:00
tsubai
e0cf8bfa8f Eject PCMCIA card on ohare based models only. 2001-07-17 12:33:45 +00:00
nathanw
dda83b1771 Add the keyboard ID found on the American versions of the PowerBook G4 and
iBook (dual USB).
2001-07-12 04:16:58 +00:00
briggs
d0dae0b07e Allow build with KGDB defined. 2001-07-11 22:11:29 +00:00
briggs
e870bf36b9 There is no other support for KGDB in this driver yet, so ifdef out the
call to a non-existent (on macppc) zs_check_kgdb() for now.
2001-06-20 02:01:56 +00:00
wiz
3f9984fc90 existent', not existant' 2001-06-19 13:42:07 +00:00
simonb
d4bcd9c735 Add/change prototypes so that macpcc builds with -Wstrict-prototypes. 2001-06-19 12:02:55 +00:00
tsubai
1614d87d0e Support the new iBook. 2001-06-17 19:54:47 +00:00
bouyer
17eff1c958 Pass WDC_CAPABILITY_MODE to the wdc core, so that it will set timings
on the drive side too.
Deal properly with the case where master and slave don't have the same timings,
and set PIO timings too.
2001-06-15 10:35:26 +00:00
tsubai
b736ff678e Use machine/bat.h rather than powerpc/mpc6xx/bat.h. 2001-06-10 15:32:57 +00:00
tsubai
8b0b4ecd3f Forgot to commit this; s/offb/ofb/. 2001-06-10 13:56:13 +00:00
tsubai
4911bdc582 Use ofb_softc again. 2001-06-10 11:38:21 +00:00
tsubai
27c2892f13 Enable color! call in ofb_putcmap again.
Matt, please don't remove codes silently without confirmation.
(At least, leave a log message!)
2001-06-10 10:34:27 +00:00
matt
d2f0c68d47 Make macppc compile by default with -Wall -Wmissing-prototype in addition
to its currently enabled warnings.  For the lack of a better place, most
global function prototype wound up in <machine/autoconf.h> unless there
was a better place for them.  ofb_* structs renamed to offb_* to avoid
conflict with ofb_softc in <dev/ofw/openfirm.h>
2001-06-08 00:32:01 +00:00
matt
695e5e7ab5 Changes new pmap, common param.h, vmparam.h, and moved includes. 2001-06-06 17:50:14 +00:00
lukem
d84d2c6c85 add missing #include "opt_kgdb.h" 2001-05-30 15:24:23 +00:00
mrg
67afbd6270 use _KERNEL_OPT 2001-05-30 11:57:16 +00:00
tsubai
9b368d61a4 Add AirMac frontend. 2001-05-16 10:56:42 +00:00
scw
2963ff5c58 Add l_poll' to struct linesw' and provide an xxxpoll() entry point
in each tty driver to indirect through it.

This allows tty line-disciplines to handle poll(2) system calls.
2001-05-02 10:32:08 +00:00
tsubai
75dbde785b Remove spaces at EOL. 2001-04-26 15:27:05 +00:00
bouyer
937a7a3ed9 Pull up the thorpej_scsipi branch to main branch.
This is a completely rewritten scsipi_xfer execution engine, and the
associated changes to HBA drivers. Overview of changes & features:
- All xfers are queued in the mid-layer, rather than doing so in an
  ad-hoc fashion in individual adapter drivers.
- Adapter/channel resource management in the mid-layer, avoids even trying
  to start running an xfer if the adapter/channel doesn't have the resources.
- Better communication between the mid-layer and the adapters.
- Asynchronous event notification mechanism from adapter to mid-layer and
  peripherals.
- Better peripheral queue management: freeze/thaw, sorted requeueing during
  recovery, etc.
- Clean separation of peripherals, adapters, and adapter channels (no more
  scsipi_link).
- Kernel thread for each scsipi_channel makes error recovery much easier
  (no more dealing with interrupt context when recovering from an error).
- Mid-layer support for tagged queueing: commands can have the tag type
  set explicitly, tag IDs are allocated in the mid-layer (thus eliminating
  the need to use buggy tag ID allocation schemes in many adapter drivers).
- support for QUEUE FULL and CHECK CONDITION status in mid-layer; the command
  will be requeued, or a REQUEST SENSE will be sent as appropriate.

Just before the merge syssrc has been tagged with thorpej_scsipi_beforemerge
2001-04-25 17:53:04 +00:00
tsubai
af50ac4b06 Make sure free rx buffers have GMAC_OWN set. 2001-04-24 11:04:11 +00:00