Commit Graph

21819 Commits

Author SHA1 Message Date
cube
4096a1c345 The definition of bus_space_vaddr on i386 makes it inappropriate as the
first argument to memset(), so change the code very slightly to workaround
that.
2007-01-13 19:45:28 +00:00
cube
aaf0bffcea Fix uninitialised warnings. All are false positives, except one which was
indeed real.
2007-01-13 19:43:20 +00:00
cube
c7835953d1 Make it compile with all the options. 2007-01-13 19:41:12 +00:00
cube
c4a70d573e Not all archs have dma tags that can be compared with "==", so use memcmp
instead.
2007-01-13 19:03:49 +00:00
cube
c27feae2a3 Make the logic of handling the options right. 2007-01-13 19:01:55 +00:00
cube
78cbf1e09d Work around false-positives for gcc's detection of use of uninitialised
variables.
2007-01-13 18:59:31 +00:00
cube
529a0e5bcd Complete initializer, and make it compile on (lesser?) archs that don't
have OpenFirmware.
2007-01-13 18:56:35 +00:00
cube
22974bb68b Complete initializers, teach drivers that we moved from struct proc to
struct lwp, sprinkle some needed const qualifiers.
2007-01-13 18:46:37 +00:00
cube
4cdd8aada6 Complete initializers so those files compile. 2007-01-13 18:42:45 +00:00
cube
c80c56c733 Complete the cons_init(n) initializer. 2007-01-13 18:39:35 +00:00
degroote
b5fe9c67de Sync the wpi driver with the openbsd one. Thanks to Jean-Baptiste
Campesato for his work.
Fix PR/34463


ok dyoung@ joerg@
2007-01-13 09:39:06 +00:00
cube
e37986b806 Add missing initializers in cdevsw structs. 2007-01-12 19:33:21 +00:00
imp
d6b291ee71 Update a few comments based on newer members of the at24xx family.
Add support for the 128kbit, 256kbit and 512kbit parts.  Note issues
with the 1024kbit and larger parts, but don't add support for them at
this time.  I've not updated with the explosion of part numbers in
this family.
2007-01-12 08:47:43 +00:00
ober
e142548f7b Update to compile properly.
OK jmcneill
2007-01-12 04:20:33 +00:00
kleink
2f0be7c423 Replace home-grown list management for DMA buffers with SLISTs, and refactor. 2007-01-12 00:47:51 +00:00
kleink
6f487a81b0 Replace home-grown list management for DMA buffers with SLISTs, and refactor. 2007-01-11 22:56:49 +00:00
elad
8ed50e44ae veriexec_file_delete() and veriexec_table_delete() now take 'struct lwp *'
too.
2007-01-11 16:24:47 +00:00
elad
43f37273f5 Use veriexec_report() instead of checking 'veriexec_verbose' and calling
log(9).
2007-01-11 15:08:47 +00:00
cube
8307daf6e0 Make it compile. 2007-01-10 21:18:44 +00:00
cube
1ff20ac39c Make COM_HAYESP compile again. It assumes no register mapping is needed. 2007-01-10 20:59:10 +00:00
cube
a4888f871a Complete initialiser, avoid returning stack content as an error code and...
Oh, yeah, we use struct lwp pretty much everywhere in place of struct proc
since...  Well, long.
2007-01-10 20:49:18 +00:00
cube
16cd257563 Complete initialiser. 2007-01-10 20:38:32 +00:00
cube
d8f80d3bf5 Make it compile. 2007-01-10 20:36:28 +00:00
cube
986edc395f Fix typoed function name. I guess not a lot of people use that driver. 2007-01-10 18:55:22 +00:00
cube
eb54877e1f Complete initialiser of the cdevsw structure. 2007-01-10 18:53:31 +00:00
itohy
f4c7b0fd4d Fix a typo in comment. 2007-01-10 09:00:00 +00:00
cube
a0f2311cbc Remove unexistent vmegeneric. 2007-01-09 23:53:33 +00:00
cube
c262fb16a5 vmegeneric never saw the light of the source tree. After 7 years, I guess
nobody missed it.
2007-01-09 23:51:30 +00:00
cube
747e90f203 Remove traces of scd(4), which apparently never actually had a driver in
the tree.
2007-01-09 21:59:08 +00:00
cube
f7881ab75f daic was disabled, wl and wavelan deleted. 2007-01-09 21:53:53 +00:00
cube
ecacf90d2f Remove stale config(5) entries for unexistent wl(4).
Ok'd by matt@.
2007-01-09 19:19:09 +00:00
christos
43a2111e08 PR/35385: Mihai Chelaru: Add a quirk for the Sony Cybershot USB camera, which
needs padding to 12.
2007-01-09 16:46:02 +00:00
cube
8e20fbc980 Comment out a trigraph in a #ifdef 0'd block. Kinda pointless, but allows
it to pass make depend.
2007-01-09 15:35:53 +00:00
cube
ea085d876a Disable daic(4). The driver is not finished.
Ok'd by martin@.
2007-01-09 15:34:59 +00:00
cube
8c668f60b4 Add a lint-only value of "/dev/null" for ACPI_DSDT_FILE.
Bump required config(1) version.  Yes, it implies everybody will have to
rebuild config(1).  I can live with people hating me.
2007-01-09 13:41:30 +00:00
itohy
8e90b03622 Cancel commands and free allocated resources on detach. 2007-01-09 12:53:12 +00:00
elad
d2e4f7167b Remove advertising clause from all of my stuff. 2007-01-09 12:49:36 +00:00
tsutsui
e699b95246 Enable hardware checksum support by hardware info taken from FreeBSD.
Tested on nForce3 250 and nForce4 by Chuck Silvers, Cesar Catrian Carreno,
and me.
2007-01-09 10:29:27 +00:00
dyoung
14431664ca Let the compiler know it should both pack the members of the rx/tx
descriptors without any padding between, and use 4-byte alignment.
2007-01-09 09:36:28 +00:00
dyoung
cf64e801fd ath-specific support for 802.11 fragmentation. From Sam Leffler.
Screen-scraped by me from the WWW source browser at perforce.freebsd.org.
2007-01-09 09:30:24 +00:00
macallan
6eb39c5682 pull in ofw_subr.c with openfirm so we can use stuff like of_compatible()
without ofbus
2007-01-08 06:43:09 +00:00
macallan
f2ba35c661 add 1280x768@75Hz modeline
from Matthew Wala
2007-01-08 00:21:44 +00:00
jmcneill
04bc2241f7 Change left/right/middle click to be left-stick-click, right-stick-click,
start. Compensate for jitter on the left analog stick, and disable the right
stick for now.
2007-01-07 19:08:05 +00:00
jmcneill
ebb76c2c64 Match on Xbox Controller S v1.0, from Andrew Gillham. 2007-01-07 16:54:32 +00:00
jmcneill
d6a7e6c3aa Regen. 2007-01-07 16:54:16 +00:00
jmcneill
f2e2dddd7a Add Xbox Controller S v1.0 product ID, from Andrew Gillham. 2007-01-07 16:54:01 +00:00
drochner
9659abca43 Allocate storage for status change notifications dynamically, depending
on the number of ports. One byte wasn't even sufficient for 8 ports.
The code doesn't make use of the status bits yet, but it might be used
to speed up the exploration loop later.
2007-01-07 16:50:02 +00:00
drochner
bd2757a152 Remove the code which disables port status change interrupts for 1s
when one occured -- this makes that events get lost (or delayed until
the next change), in particular in the handover process from the EHCI
to a companion controller, laeving the port dead under some circumstances.
This fixes the "can't reconnect" symptom for me.
I don't see why the interrupt should be disabled - it is acknowledged
in the interrupt handler and shouldn't be active again until the next
status change.
2007-01-07 16:44:44 +00:00
elad
cf9d4bd6af Update copyright/license, okay blymn@ few days ago. 2007-01-07 13:55:17 +00:00
mlelstv
f192518511 Make watchdog poll interrupts before re-initializing the chip.
Fixes kern/34834.
2007-01-07 12:57:20 +00:00
jdc
517cd3237d Allow this to compile with -DDEBUG: convert proc to lwp->l_proc. 2007-01-07 12:54:57 +00:00
jdc
9b64ec0143 Allow this to compile with -DDEBUG: convert proc to lwp->l_proc. 2007-01-07 12:32:29 +00:00
tsutsui
990e13dfb3 Typo. 2007-01-07 12:10:18 +00:00
xtraeme
8d4275e58d * Remove unused sensors, anyway we are showing just the sensors of what
the BIOS is reporting (and speedfan for windows).
* Simplify the code.
* Remove unused functions and unnecessary variables.
* Provide more rfact values for the voltage sensors (from OpenBSD).
* Remove the limit of 1.5 seconds for refreshing the sensors, it's
  unnecessary... we can read it every time we want.

Now I'm happy with the driver (code and envstat output):

[juan@nocturno][~]> envstat -r
   CPU Temp:     38.000 degC
System Temp:     36.000 degC
    VCORE_A:      1.664 V
      +3.3V:      3.312 V
        +5V:      4.919 V
       +12V:     12.480 V
       VBAT:      3.248 V
    CPU Fan:       3096 RPM
 System Fan:          0 RPM
[juan@nocturno][~]>
2007-01-07 01:39:24 +00:00
jmcneill
9db92e3203 Rename a few possible avpack values to reflect reality. 2007-01-07 01:08:51 +00:00
jmcneill
a733c906b1 Move register definitions to a separate header. 2007-01-07 01:02:34 +00:00
xtraeme
55694ceabd Driver for the Abit uGuru Hardware system monitor, contributed by
Mihai Chelaru. Minor changes (simplification and KNF) by me.

Thanks.
2007-01-06 21:27:54 +00:00
jmcneill
a33eb10c0b Make sure that we don't use the amdpm timecounter on Xbox. 2007-01-06 20:25:01 +00:00
jmcneill
643b8aef05 Report the version string from the PIC16LC. 2007-01-06 19:11:08 +00:00
jmcneill
33e535f8fd Provide external functions for setting the LED, rebooting, and powering off
the system.
2007-01-06 18:38:28 +00:00
kent
52bad336b0 * generic_mixer_default()
make the default values of bidirectional pins `output' because
 they were often the main reason of no sound problems.

* add stac9221_mixer_init()
 It has a code for Intel Mac but it is disabled for now.
2007-01-06 18:35:35 +00:00
jmcneill
8ea80379e0 Microsoft Xbox serial EEPROM driver. Currently reports the system serial
number as sysctl machdep.xbox_serial.
2007-01-06 18:04:53 +00:00
jmcneill
4a2776e2e1 Fix __KERNEL_RCSID text (missing $) 2007-01-06 16:57:19 +00:00
dyoung
e356b87859 I have made a small change that suppresses "recovery" from (spurious?)
tx timeouts on the beacon queue.  The driver's recovery process
badly disrupts the MAC's receiver.  This needs a closer look, later.

Every other fix is by Charles M. Hannum.  Charles writes:

"With these, the device is quite stable under load, does not experience
xmit timeouts, no longer mysteriously freezes, and does not spew
a lot of garbage.  It does, however, continue to get some "tx fifo
underflow"s.

global, SYSCTL_SETUP():
a) Removed unused sysctl variables.

rtw_io_enable():
b) Change rtw_io_enable to take a softc, and make it call
   rtw_txring_fixup().
c) Enable the PCI multiple read/write bit.
d) Always reset rdb_next to 0 when starting the receive engine.

rtw_intr_rx():
e) When processing receive packets, store the next pointer in rdb_next
   and read it back on the next round, to fix a race condition vs.
   rtw_tune() during AP discovery and association.
f) Remove the special "skip to 0th descriptor" code, because it is no
   longer needed.

rtw_collect_txring():
g) In the "force" case, stop when we catch up to the hardware xmit
   pointer.

rtw_intr_beacon():
h) Resetting tdb_next here looked fishy to me, in light of changes in
   rtw_collect_txring().  XXX However, this is the one part I haven't
   tested.

rtw_txring_fixup():
i) Add function and line arguments, so we can print out information
   about the caller.
j) In addition to reading the hardware pointer, skip over any
   additional packets with OWN set -- we may have queued more.

rtw_rxring_fixup():
k) Remove this, because it's completely wrong.

rtw_intr_ioerror():
l) Don't handle receive overruns here; handle them in the normal receive
   path.  Also changed RTW_INTR_RX and RTW_INTR_IOERROR accordingly.
m) Do not fiddle with CR; the transmit engine is still running just
   fine.
n) Do not fiddle with IMR; it was unnecessary.
o) Don't touch the receive engine at all; not necessary now that we're
   leaving CR alone.
p) Remove the rtw_do_chip_reset case; it was dangerous and not actually
   used.

rtw_intr():
q) Don't mask off ISR bits when we pass down the ISR value; it's not
   necessary, and sometimes the other bits useful in debugging output.

rtw_seg_too_short():
r) Don't spew here; the caller will do it if necessary.  (Stops spewage
   in an expected case.)

rtw_rxdesc_blk:
s) Minor change to make the elements have the same order as txdesc_blk.

general:
t) Added a bunch of debugging output, #ifdef RTW_DIAG, that was useful
   while investigating the ring management problems.  Also moved
   rtw_txring_fixup() into RTW_DIAG, as I believe the transmit pointer
   is always kept in sync now, and the function has potential race
   conditions.
2007-01-06 08:27:53 +00:00
dyoung
6439fa375f Add a hint to the compiler that rx/tx descriptors deserve 4-byte
alignment.  Helps GCC produce better code on ARM.
2007-01-06 06:09:03 +00:00
dyoung
d7436b96b1 After we examine a rx/tx descriptor and find that it's still owned
by the NIC, re-sync the descriptor so that a cacheline will not
"cover" the NIC's modifications to the descriptor when we next
examine it.

This compiles, but I have not tested it, yet.
2007-01-06 06:07:55 +00:00
jmcneill
9247d9813d Driver for the Xbox System Management Controller. Currently reports CPU and
motherboard temperatures, but will eventually be extended to replace
arch/i386/xbox/pic16l.S
2007-01-06 02:44:16 +00:00
jmcneill
77b483b9f1 There is absolutely no way that this code could have worked for reading
values from the smbus before. amdpm_smbus_exec was using the values read
from the registers and using them as return values instead of filling in
the caller's buffer.
2007-01-06 02:16:22 +00:00
jmcneill
5c65159089 nForce uses a slightly different register offset for the smbus controls;
compensate for this.
2007-01-06 01:20:39 +00:00
jmcneill
87323934f6 Add nVidia nForce support, tested on Xbox. 2007-01-06 00:14:21 +00:00
jmcneill
0868d77b08 Sync with Xbox Host-PCI bridge name change. 2007-01-06 00:08:20 +00:00
jmcneill
246740d3d7 Regen. 2007-01-06 00:08:00 +00:00
jmcneill
c9afab901a Add Xbox SMBus controller, and rename "Xbox nForce" to accurately reflect
that it is the Host-PCI controller.
2007-01-06 00:07:46 +00:00
jmcneill
a6c2ba7419 Remove include of machine/autoconf.h to make this compile. 2007-01-05 23:09:33 +00:00
jmcneill
cee120ede4 Add device driver for Microsoft Xbox controller. Exposes itself as a
wsmouse device for now; easy enough to make it a joystick driver in the
future.

Mappings:
 Left analog stick: Mouse movement
 Right analog stick: Scroll wheel (4 directions)
 A button: Left click
 B button: Right click
 X button: Middle click
 Y button: injected to wsmouse as a fourth mouse button click
2007-01-05 17:16:22 +00:00
elad
211d7b1c99 Use a single kauth(9) call. 2007-01-05 16:46:27 +00:00
elad
08389c092e No need to break after return. 2007-01-05 16:38:13 +00:00
elad
bcfa7b3cfb Use a single kauth(9) call. 2007-01-05 16:23:04 +00:00
jmcneill
d717c89c37 Regen. 2007-01-05 13:14:48 +00:00
jmcneill
5e3e6cca03 Add some more Xbox USB products, from Andrew Gillham. 2007-01-05 13:14:30 +00:00
msaitoh
9dc6590033 Apply OpenBSD's rev. 1.33 to shut up "msk0: phy write timed out"
Original commit message:
 > In msk_marv_miibus_writereg, wait for busy flag to clear instead of
 > continuing when busy flag set.
2007-01-05 09:23:41 +00:00
jmcneill
40ee3ca829 Regen. 2007-01-05 06:12:33 +00:00
jmcneill
e4bc7308e6 Add USB product ID for Microsoft Xbox Controller S 2007-01-05 06:12:20 +00:00
jmcneill
d9c4129a70 A few changes to make this work on the Microsoft Xbox. Should also help
with other users who have been experiencing watchdog timeouts:
 * Mask all interrupts while servicing a tx or rx interrupt.
 * On init, clear IRQ status registers (workaround for buggy netbooters).
2007-01-05 01:33:57 +00:00
jmcneill
6f8fa49b5b Fix incorrect definition of wake-on-LAN magic number, from FreeBSD. 2007-01-05 01:26:52 +00:00
elad
d5ebb97b46 Consistent usage of KAUTH_GENERIC_ISSUSER. 2007-01-04 18:44:45 +00:00
jmcneill
58b1e3f163 Regen. 2007-01-04 18:04:39 +00:00
jmcneill
1ed29612b0 It's nForce Ethernet, not Ethetnet 2007-01-04 18:04:26 +00:00
jmcneill
878f749ef4 Add quirk for Xbox nForce, from Andrew Gillham. 2007-01-04 15:47:25 +00:00
jmcneill
d9ff124659 Regen. 2007-01-04 15:47:00 +00:00
jmcneill
b0c92e7127 Add Xbox nForce video, from Andrew Gillham. 2007-01-04 15:46:33 +00:00
macallan
4fc284f481 add preliminary support for setting backlight levels via ioctl()
from Johan Wallen
2007-01-03 19:47:17 +00:00
bouyer
0eac5c0667 Fix cut'n'paste, don't print version 1.0 when we have a version 1.1 controller.
Pointed out by Craig Metz.
2007-01-03 18:58:26 +00:00
isaki
2410b4468e Correct indent. 2007-01-02 02:23:51 +00:00
ichiro
fc5218cd75 re-make usbdevs.h & usbdevs_data.h 2007-01-01 05:05:21 +00:00
ichiro
f745a29bf8 regen. 2007-01-01 05:03:38 +00:00
ichiro
39fbca5ed6 add new vendor & product
TOD(VendoeID 0x0ede)
DOOGI SLIM USB Keyboard(ProductID 0x0411)
see. http://www.rollkeyboard.com
2007-01-01 05:03:24 +00:00
tsutsui
7c3bb7972d Pull a TX timeout fix from OpenBSD:
> Defer setting of the valid bit in the first TX descriptor after
> all descriptors have been setup.  Otherwise, hardware may start
> processing descriptors faster than us and crap out.
> Fixes "watchdog timeout" errors.
>
> Original idea from Matthew Dillon @DragonFly.
2007-01-01 04:13:25 +00:00
tsutsui
3b8f579381 Minor style fixes in nfe_attach:
- print PCI device name and revision
- print interrupt and Ethernet address like other devices

Before:
---
nfe0 at pci0 dev 5 function 0LKLN: Picked IRQ 20 with weight 1
: ioapic0 pin 20 (irq 9), address xx:xx:xx:xx:xx:xx

After:
---
nfe0 at pci0 dev 5 function 0: NVIDIA nForce3 ethernet #4 (rev. 0xa2)
LKLN: Picked IRQ 20 with weight 1
nfe0: interrupting at ioapic0 pin 20 (irq 9)
nfe0: Ethernet address xx:xx:xx:xx:xx:xx

(note "Picked IRQ" message is logged by aprint_verbose(9) in acpi(4))
2007-01-01 03:43:04 +00:00
ichiro
8ec4e717ad add entry CF32A CF Adapter (BUFFALO RCF-CBA2) 2006-12-31 12:50:19 +00:00
ichiro
14ea0f7656 regen 2006-12-31 12:48:00 +00:00
ichiro
86aed9b2f4 add RCF-CBA2 CF-Adapter
(WORKBIT-CF32A)
2006-12-31 12:47:43 +00:00
ad
dfe565a4b0 - Print number of channels and firmware revision.
- Cut polling delay to make crashdumps faster.
2006-12-29 14:07:08 +00:00
ad
65c4eaafe1 Bump the hardware queue depth up to 256. 2006-12-28 19:17:12 +00:00
itohy
d796584488 Don't use esp_pcmcia_enable() before attaching chip driver (ncr53c9x),
since it touches storage allocated by the chip attach function.
The chip driver properly calls scsipi_adapter_addref() /
scsipi_adapter_delref(), and just deleting the esp_pcmcia_enable() call
and the relevant code should be OK.

Fix panic descibed in PR kern/26909.
2006-12-28 16:37:46 +00:00
itohy
3e588075d6 Stop callout on detach. 2006-12-28 03:13:54 +00:00
hubertf
f300aecb2d Fill manpage with some data, taken from comments in the kernel source 2006-12-28 02:09:49 +00:00
dogcow
be3e9fcde5 fix a (valid) "buf may be used uninitialized" warning/error in DIAGNOSTIC. 2006-12-27 22:07:17 +00:00
alc
24803bd1c4 remove the KASSERT() introduced in last commit and use VLAN_OUTPUT_TAG() macro.
tested by martin@
pointed out and ok by pavel@, also ok from christos@
2006-12-27 18:36:09 +00:00
alc
f8b0309827 CID-3821: don't leak `fh' and close the firmware properly
ok christos@
2006-12-27 18:01:45 +00:00
elad
0ffd2bf379 Adapt to recent machdep scope changes.
Pointed out by Kouichirou Hiratsuka, thanks!
2006-12-26 16:42:06 +00:00
tsutsui
03841e683e Wrap a sanity check in re_newbuf() with #ifdef DIAGNOSTIC and
make it fatal on failure.
2006-12-26 13:45:43 +00:00
tsutsui
91031286e2 Use __predict_false() in several conditionals. 2006-12-26 13:40:58 +00:00
rumble
4bbcf8f210 Add type for sgimips/light(4). 2006-12-26 05:54:00 +00:00
alc
9254207181 CID-3667: check if 'mtag != NULL' before dereferencing it 2006-12-25 23:58:36 +00:00
wiz
ea6266ca87 Spell "threshold" correctly. From Zafer Aydogan. 2006-12-25 18:41:45 +00:00
wiz
3ed1aa9185 Spell "separate" correctly. From Zafer Aydogan. 2006-12-25 18:39:47 +00:00
wiz
19c7b24184 Spell "schedule" correctly. From Zafer Aydogan. 2006-12-25 18:36:05 +00:00
ad
9f07c24ec6 lockstat: improve reporting slightly, and fix a bug where the command
could spin while resorting lists.
2006-12-25 11:57:40 +00:00
rumble
6dc1b846a8 Make this compile again when KASSERT is enabled. 2006-12-24 19:15:15 +00:00
rumble
b62466819b Revert the previous change and specify the appropriate page boundary to
bus_dmamap_create(9) via a proplib number entry.

Recommended by Izumi Tsutsui.
2006-12-24 01:49:45 +00:00
rumble
25e8e63c52 The Set Engineering GIO board for sgimips (IP22) sits behind a special
bridge that precludes the ThunderLAN's DMA engine from performing segment
transfers across page boundaries. Add logic under #ifdef TL_SETENG_GFE to
split up these segment transfers appropriately.

It's unknown whether this issue could also affect the RX path, though no
problems have been observed yet.
2006-12-23 21:24:32 +00:00
kiyohara
c8826cd8a1 Use macro FWBUSNOTREADY. 2006-12-22 03:27:49 +00:00
kiyohara
190ae0482f Include ioconf.h it for `struct cfdriver fwohci_cd'. 2006-12-22 03:26:51 +00:00
yamt
8bf7662829 merge yamt-splraiseipl branch.
- finish implementing splraiseipl (and makeiplcookie).
	  http://mail-index.NetBSD.org/tech-kern/2006/07/01/0000.html
	- complete workqueue(9) and fix its ipl problem, which is reported
	  to cause audio skipping.
	- fix netbt (at least compilation problems) for some ports.
	- fix PR/33218.
2006-12-21 15:55:21 +00:00
kiyohara
71d34007f5 Fix memory allocation, in case isochronous transfer fail this. 2006-12-21 00:31:51 +00:00
bouyer
39568acf5e Add missing $NetBSD: $ 2006-12-20 21:44:06 +00:00
skrll
be0d7b99e3 - Upgrade to the latest firmware and as a result remove the error log dump.
- Mostly sync with OpenBSD
	- Serialise sending commands to the firmware
	- Remove redundant calls to bpfdetach.
	- use bus_size_t where appropriate and not fetch iobase as it's not
	  used.
	- improve 802.11 radiotap support (correct rx rate)
	- add short preamble flag
	- add short slot time support
	- ignore parity errors (as per the Linux driver)
	- Set Tx power for all channels.
	- disable bluetooth co-existance
	- Check that ni->ni_rates.rs_nrates is not greater than the maximum
	  handled by the firmware.
- Begin syncing with the FreeBSD driver by renaming a few things.
2006-12-20 16:30:20 +00:00
smb
4612e5b3e5 Handle new gcc properly 2006-12-19 21:17:17 +00:00
itohy
41d24e831c Fix bus_dmamap_sync() usage.
This should not be a problem since BUS_DMASYNC_POSTWRITE is probably a no-op.
2006-12-19 14:12:26 +00:00
kleink
4d3ac0366b Redo rev. 1.42, fixing the original array subscript pasto the right way. 2006-12-18 23:13:39 +00:00
christos
f9a3a10e65 Don't cleanup memory mappings twice. From Blair Sadewitz 2006-12-18 12:01:48 +00:00
cube
0786b7cfa3 Add a NetBSD RCS tag. 2006-12-17 23:08:12 +00:00
bouyer
ea4f35dcd0 Add bnx(4), a driver for Broadcom NetXtreme II 10/100/1000 Ethernet device.
Ported from OpenBSD by cube@, with some bus_dma fixes by me.
Tested on i386 and amd64.
2006-12-17 23:02:06 +00:00
bouyer
462dc620e3 Add mfi(4), a driver for LSI Logic & Dell MegaRAID SAS RAID controller.
Ported from OpenBSD, tested on i386 and amd64.
2006-12-17 22:57:14 +00:00
peter
d939731248 Add WSKBD_TYPE_ZAURUS (Sharp Zaurus keyboard). 2006-12-17 16:08:44 +00:00
tsutsui
b2261339c5 Fix and reenable HW VLAN tagging on re(4):
- clear re_vlanctl in DMA descriptors before starting TX and RX
  to avoid stale tags
- use bswap16() rather than be16toh() or htons() on VLAN tag access
  since we already use htole32()

Closes PR kern/32643 and also fixes HW VLAN tagging on big endian machines.
2006-12-16 02:52:17 +00:00
christos
f05c39985f explicitly set clk to 1 or 0. 2006-12-14 22:35:20 +00:00
kleink
94dd6117cd Un-break clock selection after -Wsign-compare cleanup in rev. 1.43;
from Stephen Ma in PR kern/35220.
2006-12-14 22:27:12 +00:00
macallan
65ea75bafa various minor fixes:
- avoid virtual resolution < physical resolution (Marco Trillo)
- don't use hardware-accelerated putchar() on R3xx
- clear screen when attaching wsdisplay
2006-12-13 00:19:01 +00:00
jdc
7bf256869d Add an explicit NULL for the card_detect function (that we don't have/need)
in struct pcmcia_chip_functions {}.
This now compiles again (adding -Wextra exposed this).

OK martin@.
2006-12-11 11:42:48 +00:00
bouyer
c2b954c80b Regen: another PCI id for Dell PERC 5 2006-12-10 23:44:08 +00:00
bouyer
637f604b17 Add another PCI ID for Dell PERC 5 (from OpenBSD) 2006-12-10 23:43:13 +00:00
cube
4cb6e56c76 Remove an error message about having FSTAR'd instances attaching at pcppi.
It's actually fine to have them.  Somehow I wish there was a way to express
that there can be only one device of that kind attaching on a given pcppi.

All of this is generic for all indirectly configured bus (i.e., specified
by kernel configuration).

Reported by uwe@.
2006-12-10 22:10:57 +00:00
uwe
f9e1284353 Convert to use aprint_* 2006-12-10 05:14:42 +00:00
uwe
a066e1031b Use aprint_normal for attachment messages. 2006-12-10 04:52:13 +00:00
uwe
4f6d5a41f4 Provide aprint_naive("\n"); in attach. 2006-12-10 03:44:28 +00:00
uwe
dbbb1cca5e When comlaining about child* attachment print "WARNING" and the child
name.  Makes it more obvious what the problem is, and easier to spot
in the dmesg output after quiet boot warns about "errors" while
detecting hardware.
2006-12-10 03:24:29 +00:00
uwe
ba06ad7411 Add missing aprint_naive to the attach routine. 2006-12-10 00:40:10 +00:00
uwe
d2a699ecf7 Print pci device info instead of "Power Management Controller". 2006-12-10 00:34:52 +00:00
uwe
e8e4f16a5c aprint_naive("\n") to terminate "Found" line for quiet boot.
Use aprint_error to report that we are unable to establish power hook.
2006-12-10 00:33:11 +00:00
manu
57cf012b11 Add support for 4 and 8 ports modem boards from Perle systems 2006-12-09 21:06:06 +00:00
tsutsui
fba4e06d1b No need to include PCI header files. 2006-12-06 13:52:46 +00:00
macallan
27138de097 move int j into #ifdef COMPAT_30 to avoid an unused variable warning when
building without COMPAT_30
2006-12-05 20:45:36 +00:00
christos
682562feb0 fix compilation issues. 2006-12-05 17:35:35 +00:00
pavel
60ca34bcae Add forgotten #include "opt_compat_netbsd.h" because COMPAT_30 is used.
Should fix a build problem reported by Blair Sadewitz.
2006-12-05 08:17:03 +00:00
pavel
9b8e4189e5 Restore compatibility of USB_DEVICEINFO ioctl and reads from /dev/usb with
NetBSD 3.x. Patch from Stephan Thesing provided in
http://mail-index.netbsd.org/current-users/2006/03/21/0002.html, with some
modifications by me.
See also
http://mail-index.netbsd.org/current-users/2006/08/29/0017.html

The code is conditionally compiled depending on COMPAT_30.

Also fix a leak of struct usb_event in usbread() introduced while converting
on-stack variables to dynamic allocation.

Reviewed by martin@.
2006-12-03 22:34:58 +00:00
tsutsui
b0f03bc527 - pull the following fix from FreeBSD's rgephy.c rev 1.14:
> - Don't set MIIF_NOISOLATE so rgephy(4) can be used in configurations
  >   with multiple PHYs and un-comment case IFM_NONE in case MII_MEDIACHG
  >   rgephy_service(). There doesn't seem to be a problem with isolating
  >   RTL8169S and their internal PHY.
  and rev 1.12:
  > - Fix some spelling in comments.
  > - Remove superfluous returns at the end of void functions.
  > - Remove unused static global rgephy_mii_model.
- remove #ifdef'ed out code whcih has also been removed in FreeBSD
- some style cosmetics
2006-12-03 03:16:48 +00:00
freza
e388b581bd Welcome to evbppc/virtex -- port to Xilinx Virtex series FPGA's with embedded
ibm405d5 core.

OK by Simon Burge
2006-12-02 22:18:47 +00:00
bouyer
13e29fff26 Don't call the done callback twice if a special action is waiting on the queue.
Don't forget to free the xfer in the normal bio path.
2006-12-02 13:35:52 +00:00
christos
456024195b revert previous commit (size_t -> int change). Thanks cube. 2006-12-02 06:22:09 +00:00
christos
c54ef0193c restore binary compatibility. 2006-12-02 05:27:27 +00:00
christos
972b81c7cd int -> size_t 2006-12-02 05:16:01 +00:00
elad
432c309931 Change kauth(9) KPI for kauth_authorize_device_passthru() to add another
argument, u_long, serving as a bit-mask of generic requests for the
passthru request.

Discussed on tech-security@ and tech-kern@. Okay tls@.
2006-12-02 03:10:42 +00:00
martin
9be3ef677b On Christos' request, reinstantiate the packed->__packed__ part of the
backed out change.
2006-12-01 21:36:56 +00:00
martin
035130a4dd Fix PR kern/34202 differently, by aligning the variables "the traditional
way".
2006-12-01 21:23:57 +00:00
martin
d5c3b27938 Back out align(4) for all struct decls - it breaks various things all
over the tree (for example esiop on sparc64 won't boot any more).
2006-12-01 21:11:26 +00:00
drochner
af0d6b7f5e change some commented-out code to use the interrupt descriptor's polling
interval instead of an own (which isn't even defined)
2006-12-01 20:56:42 +00:00
drochner
d395a37b84 -comment out transaction translator support for now, it doesn't do more
than allocating memory, and it does wrongly use the hub's capabilities
 but not the actual setting
-switch a high-speed hub to "multiple TTs" but ignore errors; since
 we don't care whether there is one or multiple this is a "best effort"
 thing
2006-12-01 20:48:50 +00:00
drochner
c7a98882c8 don't specify the interrupt pipe polling interval explicitely; just rely
on the endpoint descriptor
approved by plunky
2006-12-01 20:41:23 +00:00
christos
491c94e1fc - remove size check; the init functions do it.
- fix size_t/int confusion
- caddr_t -> void *
2006-12-01 15:52:55 +00:00
tsutsui
be41c8c2ea Free resouces on failure in vge_allocmem(). 2006-12-01 11:30:55 +00:00
tsutsui
af1ca0f86d - vge_probe() -> vge_match()
- KNF, unwrap lines
2006-12-01 11:06:59 +00:00
cube
ffb2095341 Now that we have a AHCI driver (thanks a bunch, Manuel!), we can remove the
nonsense quirk that switched operating mode on ICH7 and ICH8.

I removed the obvious candidates for ahcisata(4), and I'll have a closer
look later if there are others to be removed;  ahcisata(4) will take over
handling the device anyway, but there is no reason to keep AHCI devices in
that list.

Along the way, remove the code that tries to put the chip in Enhanced mode,
it makes absolutely no sense to do that, and some BIOSes might not have
prepared the BARs for that, as proven by PR#34885.  If people want to use
all IDE and SATA channels, they have to tell the BIOS.
2006-12-01 10:31:30 +00:00
bouyer
93df930ebb It's 3.0Gb/s, not GB/s. Pointed out by Thomas E. Spanjaard. 2006-11-30 23:07:31 +00:00
oster
f654b0f228 Change a bunch of "#if DEBUG" to "#ifdef DEBUG". 2006-11-30 23:01:50 +00:00
christos
c5fe3abeef regen 2006-11-30 22:34:27 +00:00
christos
6137742b24 PR/35163: Christian Groessler: support for Aztech MM Pro 16 III ISA-PNP
sound card
2006-11-30 22:34:01 +00:00
bouyer
7b4730a29f Add ahcisata(4), a driver for AHCI 1.0 and 1.1 controllers. Tested on the sata
ports of a Intel 63xxESB chipset. Does not support NCQ yet.
2006-11-30 21:01:15 +00:00
hannken
7d99324122 Enable WDC_CAPABILITY_WIDEREGS. With this change LBA48 operations no
longer wrap at 128GB.
Tested on an "ServerWorks HT-1000 SATA Controller (rev. 0x00)".

Approved by: Manuel Bouyer <bouyer@netbsd.org>
2006-11-30 19:32:37 +00:00
christos
409998ac55 Prevent kernel crashes caused by umass devices that return bogus mode sense
data, such as the "Cooler Master". From Rhialto. While there, clean up some
debugging code and make the offset unsigned.
2006-11-30 17:59:35 +00:00
christos
d048649c18 Add a quirk for Initio drives (from Rhialto) 2006-11-30 17:39:25 +00:00
elad
7a71c77e81 More cleaning... split veriexec_delete() to veriexec_file_delete() to
handle a single entry and veriexec_table_delete() to handle an entire
table. veriexec_convert() now takes a struct vnode *, and made
veriexec_table_lookup() take struct mount * (that's entirely internal
now).

Tested on amd64, built successfully on amd64, i386, sparc, and sparc64.
2006-11-30 16:53:47 +00:00
drochner
263cbcd833 don't specify a polling interval for the interrupt pipe -- that's
what the descriptor is good for
2006-11-30 16:30:33 +00:00
drochner
bdd5b724b5 in the interrupt endpoint descriptor of the simulated root hub, fix the
poll interval: since this is a highspeed device, it should be a "12"
(just for sanity; this stuff is not used by the kernel, only userland
usb exploration code might see it)
2006-11-30 16:25:28 +00:00
christos
d5272d5b35 PR/34202: Dave Huang: Accessing cd device on alpha causes kernel trap
From the PR:
  Since struct scsipi_read_discinfo_data is an odd number of bytes long
  (35 bytes), ti ends up being unaligned. wdc_datain_pio() uses
  bus_space_read_multi_4() to read the response from the drive, and
  since ti is unaligned, it causes an unaligned access fault.

Add __aligned__(4) to all the structures.
2006-11-30 16:23:20 +00:00
oster
212a5b65f4 If the user has specified 'root on foo', then skip changing the booted_device
even if we've detected a 'root on raid' autoconfigure.  This change is really
only cosmetic, since setroot() will still do the right thing and honor
the 'root on foo' setting.
2006-11-30 15:12:17 +00:00
elad
0c67c581a5 Massive restructuring and cleanup of Veriexec, mainly in preparation
for work on some future functionality.

  - Veriexec data-structures are no longer exposed.

  - Thanks to using proplib for data passing now, the interface
    changes further to accomodate that.

    Introduce four new functions. First, veriexec_file_add(), to add
    a new file to be monitored by Veriexec, to replace both
    veriexec_load() and veriexec_hashadd(). veriexec_table_add(), to
    replace veriexec_newtable(), will be used to optimize hash table
    size (during preload), and finally, veriexec_convert(), to convert
    an internal entry to one userland can read.

  - Introduce veriexec_unmountchk(), to enforce Veriexec unmount
    policy. This cleans up a bit of code in kern/vfs_syscalls.c.

  - Rename veriexec_tblfind() with veriexec_table_lookup(), and make
    it static. More functions that became static: veriexec_fp_cmp(),
    veriexec_fp_calc().

  - veriexec_verify() no longer returns the entry as well, but just
    sets a boolean indicating whether an entry was found or not.

  - veriexec_purge() now takes a struct vnode *.

  - veriexec_add_fp_name() was merged into veriexec_add_fp_ops(), that
    changed its name to veriexec_fpops_add(). veriexec_find_ops() was
    also renamed to veriexec_fpops_lookup().

    Also on the fp-ops front, the three function types used to initialize,
    update, and finalize a hash context were renamed to
    veriexec_fpop_init_t, veriexec_fpop_update_t, and veriexec_fpop_final_t
    respectively.

  - Introduce a new malloc(9) type, M_VERIEXEC, and use it instead of
    M_TEMP, so we can tell exactly how much memory is used by Veriexec.

  - And, most importantly, whitespace and indentation nits.

Built successfuly for amd64, i386, sparc, and sparc64. Tested on amd64.
2006-11-30 01:09:47 +00:00
bouyer
49f9b08461 Use mstohz() for callout argument instead of local arithmetic. 2006-11-29 21:37:42 +00:00
drochner
c054c36959 restore a nice little feature which got lost in some previous commit:
the d_typename field of the default disklabel is initialized with
text from the SCSI inquiry, so that one gets at least a vague idea which
disk he is dealing with
2006-11-29 21:06:49 +00:00
tsutsui
29fb2fb408 Remove mii_mediachg() call from re_init().
It causes a few second TRX stalls on each ioctls
(on ifconfig(8) or tcpdump(8) etc.) and PHY seems
initialized properly without it at least on RTL8169S
with internal rgephy(4) PHY. Closes PR kern/34517.

XXX: maybe we should also test this on the original RTL8169
     with external makphy(4).
2006-11-29 14:13:15 +00:00
tsutsui
92dc7b0c2c Fix #ifdef/#endif comment mismatch. 2006-11-29 14:01:53 +00:00
tsutsui
2af93ca79c KNF, ANSIfy, unwrap lines. 2006-11-29 13:57:59 +00:00
tsutsui
da40bfc506 Pull some updates from the Realtek's driver:
- set RGEPHY_1000CTL_AHD in rge_reset()
- reset RGEPHY_MII_BMCR register in rge_reset() too

While here, use proper macro rather than magic numbers for
ANAR and BMCR registers there.
2006-11-29 13:49:24 +00:00
ad
a80609203c Improve error handling. Related to PR/21900. 2006-11-28 23:06:33 +00:00
elad
646f2112d3 Make Veriexec use proplib(3) for kernel-userland data passing.
Obviously, this breaks the already unstable Veriexec ABI, but that's
it. Some cool additions are planned to be introduced, and this just
makes it so that NetBSD 4.0 users will be able to easily use them as
well.

This also removes the fingerprint type name limit, so relevant code
was adjusted.

Thoroughly tested (even uncovered a bug in proplib! thanks for fixing
that cube@!). Documentation updated.
2006-11-28 22:22:02 +00:00
drochner
0b5d054c71 Remove the code which tried to guess the toggle bit after a short
transfer. It was wrong because it didn't consider block boundaries.
Instead, use the updated toggle from the transfer descriptor -- this
is supposedly cheaper than modulo arithmetics.
This fixes a problem similar to PR kern/34070 for me.
2006-11-28 20:58:12 +00:00
ad
8b4b54cb8d Improve error handling. Related to PR/21900. 2006-11-28 20:29:14 +00:00
christos
17a81bf4b3 PR/35146: George Michaelson: minor fix to let radeonfb.c compile 2006-11-28 13:38:39 +00:00
tsutsui
2e0739074e Pull fixes from FreeBSD's rgephy.c:
Revision 1.9:
> Make the rgephy driver advertise both 1000_FD and 1000_HD bits in
> autoneg mode. A couple of the devices don't autoneg correctly unless
> configured this way.

Revision 1.11:
> Due to the poor PHY documentation from RealTek I can't sure but I
> think the RealTek PHY needs driver to set RGEPHY_BMCR_AUTOEN bit of
> RGEPHY_MII_BMCR register and proper ANAR register setting for manual
> media type selection.
> This fixes long standing manual media type selection bug in rgephy(4).
2006-11-28 13:36:29 +00:00
elad
64c69c4ece No need to copy fp_type twice. 2006-11-27 23:05:18 +00:00
dogcow
371dea6737 revert last change, as havard's fix is more general. 2006-11-27 20:29:12 +00:00
christos
0bc546e589 PR/35136: Gary Duzan: Enable Ultra/133 on newer aceride 2006-11-27 16:56:38 +00:00
martin
a6d16a29ee If no scsibus is configured, do not silently fail the attach but print
a message pointing at the usscanner(4) manual page.
Addresses PR port-i386/22393.
2006-11-26 20:14:41 +00:00
dyoung
c11fb5eece Add 'volatile' to rx/tx descriptor fields. 2006-11-26 17:31:32 +00:00
tsutsui
e2e881bcd1 Match BCM5752 PHY. From Matthias Drochner and FreeBSD/OpenBSD. 2006-11-26 16:31:48 +00:00
tsutsui
b9957a3cdf Regen from miidevs rev 1.69:
> Add BCM5752 Gig-E PHY. From Matthias Drochner and FreeBSD/OpenBSD.
2006-11-26 16:28:19 +00:00
tsutsui
7437e6f3b5 Add BCM5752 Gig-E PHY. From Matthias Drochner and FreeBSD/OpenBSD. 2006-11-26 16:26:35 +00:00
tsutsui
48100f0649 Fix stupid bugs found on sparc64:
- checking if dmamap != NULL is not valid because dmamap is not cleared
  in bus_dmamap_unload(9)
- no need check RX mbufs and call m_freem() and bus_dmamap_unload()
  in vge_init() since it's done in prior vge_stop()

Now vge(4) works fine on Ultra5.
2006-11-26 16:11:51 +00:00
tsutsui
2b15bbad22 Include <sys/device.h> for struct device. 2006-11-26 15:40:14 +00:00
tsutsui
8c8ebe8b93 - prepare inline functions to set 48 bit DMA address which avoid 64 bit
arithmetic on ILP32 (sizeof(bus_addr_t) == 4, exactly) hosts
- prepare and use VGE_PREV_TXDESC() macro
- use VGE_[TR]XDESCSYNC() calls more efficiently
- wrap a sanity check against VGE_RDSTS_OWN in vge_newbuf()
  with #ifdef DIAGNOSTIC since it should not happen
- use sc->sc_tx_free (number of free TX descs) to check if TX packets are
  queued or sent
- call vge_start() only if the interupt is actually handled by this driver
- some misc cosmetics
2006-11-26 15:04:15 +00:00
tsutsui
cd5182f737 Introduce a new VGE_RX_BUFSIZE macro which represent default RX mbuf
length and define VGE_RX_PAD (which is 4 bytes) for ETHER_ALIGN (2 bytes)
padding only in !__NO_STRICT_ALIGNMENT case to avoid confusion.
As per comments from Murata Shuuichirou in PR kern/31323.
Tested on i386 and macppc.
2006-11-26 13:09:32 +00:00
cube
35d885e59a Introduce acpi_check() to inform the caller whether the acpi driver is
still enabled, as it could have been disabled through USERCONF.

Use it in amd64 and i386 mainbus code and skip all ACPI processing in case
it is disabled.
2006-11-26 12:30:05 +00:00
tsutsui
8632b7c3a3 Sync two alternative IDs with pcidevs. 2006-11-26 06:09:09 +00:00
tsutsui
d4b56fbafe Regen from pcidevs rev 1.855:
> - add more Broadcom product IDs, and fix two alternative IDs
>   (from FreeBSD and OpenBSD)
> - sort by product ID
2006-11-26 06:07:48 +00:00
tsutsui
19ac8df8e6 - add more Broadcom product IDs, and fix two alternative IDs
(from FreeBSD and OpenBSD)
- sort by product ID
2006-11-26 06:06:20 +00:00
tsutsui
ca6ff0c8b6 Fix a typo. 2006-11-26 05:58:05 +00:00
tsutsui
c4d5f6498e Revert a CHIPID entry in the previous:
In OpenBSD's if_bgereg.h, CHIPID 0x4101000 is defined as BCM5750_B1
but our PR kern/31028 says it's BCM5751_A1 on BCM5751M on IBM T43p,
and the value seems reasonable.
2006-11-26 05:52:15 +00:00
itohy
e73f75f98e If the block size reported by Read Capacity looks valid, just use it.
Use Request Sense only if Read Capacity succeeded and did not return
valid block size.
Discussed on tech-kern.
Fix the easier part of NetBSD PR kern/26537.
(The harder part is the device hangs on large (>= 8KB) transfer.
Possibly umass BBB problem?)

Remove scsipi_size() and scsipi_validate_secsize() from scsipi_base.c
and add their functions to sd.c since they are used only by sd.c.

Use SCSI term `block' instead of `sector' where applicable.
2006-11-26 05:01:09 +00:00
tsutsui
3267e61df1 Add and fix some BGE_CHIPIDs. From FreeBSD and OpenBSD. 2006-11-26 04:00:45 +00:00
tsutsui
6498cd88c4 TAB/space cleanup. 2006-11-26 03:08:02 +00:00
tsutsui
5a3995e0ab Add support for BCM5752M. from Matt Kolb on tech-kern and OpenBSD. 2006-11-26 03:02:04 +00:00
tsutsui
fc28f9749e Pull some bge_encap() fixes from OpenBSD:
> - Move TX ring full sanity check further up and check the number of DMA
> segments from the DMA map, instead of counting the DMA segments in the
> for loop and breaking out later.
> - Unload the DMA map if encountering an error condition.
2006-11-26 02:40:10 +00:00
tsutsui
cc80189e88 make DMA descriptor members volatile. 2006-11-26 02:39:04 +00:00
enami
a51f8d642d Match on board ethernet controller on VGN-TX72PZ. 2006-11-26 01:15:39 +00:00
enami
b13cb14425 Regen. 2006-11-26 01:14:28 +00:00
enami
ea431224c0 Add product id of yet another i82557 variant. 2006-11-26 01:13:48 +00:00
christos
efe8812c21 regen 2006-11-25 21:35:34 +00:00
christos
68a8c2bc9c PR/35122: Dieter Roelants: Support for LevelOne WNC-0301USB USB wireless 2006-11-25 21:35:08 +00:00
christos
853fed0ed7 prevent blocksizes > 4K. 2006-11-25 21:13:23 +00:00
dsl
a985c88ba5 Include the spectrum24y firmware when built as a LKM 2006-11-25 18:06:55 +00:00
dsl
f26a3ca423 Make the inclusion of the spectrum24t firmware a config option, default
to enabled.
2006-11-25 17:52:57 +00:00
christos
c0179c282a spell precede; from Zafer 2006-11-25 16:48:31 +00:00
tsutsui
b7a2205885 BCM5701 B2 requires BGE_QUIRK_ONLY_PHY_1 quirk. From Brian Baird
in PR kern/23778.
2006-11-25 13:31:00 +00:00
scw
79017e8016 - Call disk_blocksize(9) once we know the disk's physical block size.
- bounds_check_with_label() has been fixed, so no need to fake the
  raw partition's size in terms of DEV_BSIZE units.
2006-11-25 12:06:31 +00:00
scw
e34c588b57 - Call disk_blocksize(9) when we determine the physical block size of the
media. (Will this ever be anything other than 2048?)
- bounds_check_with_label() has been fixed, so put the correct partition
  size in the default disklabel.
2006-11-25 12:03:38 +00:00
scw
e07faf8a74 Replace the myriad copies of bounds_check_with_label() with a single MI
version.

Add disk_blocksize(9) so that disk drivers can record the physical
block size of a disk if it is different to DEV_BSIZE. Right now this
simply initialises dk_blkshift and dk_byteshift according to the
supplied block size. This information is used in the MI version of
bounds_check_with_label().
2006-11-25 11:59:55 +00:00
tsutsui
963a39e836 - add RE_RX_DMAMEM_SZ macro to hide a bit confusing hack
(allocating TX padding buffer in RX DMA mem to save resouces)
  and use it where appropriate
- add a comment about the hack in re_attach() too
- pass a correct size on bus_dmamem_unmap() for RX DMA mem
2006-11-25 02:42:18 +00:00
wiz
09cb1d6f1c s/existance/existence/, from Zafer. 2006-11-24 22:52:16 +00:00
wiz
6919c6578c s/independant/independent/, from Zafer. 2006-11-24 22:04:21 +00:00
wiz
fa34b615d2 Correct spelling of "immediate(ly)". From Zafer. 2006-11-24 21:23:07 +00:00
christos
1665d5e960 fix spelling of accommodate; from Zapher. 2006-11-24 19:46:58 +00:00
christos
d8f5d5f044 fix capitalization of NetBSD; from Zapher 2006-11-24 19:38:55 +00:00
tsutsui
47af0126d5 Change RXFIFO, RXDMA and TXDMA configrations to values taken from
the Reaktek's driver, which are also used in FreeBSD.
Fixes RX FIFO overrun errors on my Duron 1300MHz PC.
(Note the configuration values for rtk(4) are not changed)

Also add some debug printf's in RX error case (disabled by default).
2006-11-24 16:30:45 +00:00
martin
381d97cf19 Snapshot of work in progress gem @ sbus attachement. Don't use at home
yet!
Thanks to Steve Rikli for providing hardware and test equipement,
and to uwe for a lot help understanding the hardware.
2006-11-24 13:23:32 +00:00
martin
3a83155c93 Ooops - make it compile again. 2006-11-24 13:05:29 +00:00
martin
bed31b2f32 In preparation for gem @ sbus: split the GEM registers into two halfs
and provide a bus_space_handle_t for each. While there, fix a typo
in gem_bitwait().
2006-11-24 13:01:07 +00:00
yamt
809ec70bcf implement ipv6 TSO.
partly from Matthias Scheler.  tested by him.
2006-11-23 19:41:58 +00:00
martin
22b629efe2 Fix an obvious copy&pasto and make it compile with GEM_DEBUG. 2006-11-23 18:41:25 +00:00
he
e004bf7e3b This file needs to know the size of "struct device", so include
<sys/device.h> here.  This should allow the sparc GENERIC_SUN4U and
sparc64 kernels to build sata_subr.c again.
2006-11-23 08:44:42 +00:00