Commit Graph

77214 Commits

Author SHA1 Message Date
sekiya f71fdbe340 Add config goo for ath. Tested with a PCI card, detected as:
ath0 at pci0 dev 10 function 0
	ath0: interrupting at ioapic0 pin 17 (irq 5)
	ath0: 11a rates: 6Mbps 9Mbps 12Mbps 18Mbps 24Mbps 36Mbps 48Mbps 54Mbps
	ath0: 11b rates: 1Mbps 2Mbps 5.5Mbps 11Mbps
	ath0: 11g rates: 1Mbps 2Mbps 5.5Mbps 11Mbps 6Mbps 9Mbps 12Mbps 18Mbps 24Mbps 36M bps 48Mbps 54Mbps
	ath0: mac 5.9 phy 4.3 radio 3.6

Cardbus untested, so it is commented out.
2005-07-12 20:22:45 +00:00
martin e14ba58310 When returning 64bit values (from netbsd32_lseek) fix up the return
value vector (of 32bit values, most likely) via a MD macro.
2005-07-12 15:06:17 +00:00
he a3607bd3a5 This port also needs it's own sunos_machdep.h. 2005-07-12 13:41:34 +00:00
drochner cf8cd48224 tell bpf radiotap consumers that the FCS is appended 2005-07-12 12:51:03 +00:00
drochner 2837deee7b pad radiotap header to ensure alignment 2005-07-12 12:46:37 +00:00
drochner a33487a69f fixes from FUKAUMI Naoki. Changes are
>   Enable WEP (software engine).
>   Add support for WPA[12].
>   Print modes and rates.
>   Add new devices.
>   And some small changes and bug fixes.
2005-07-12 12:13:00 +00:00
drochner 2ad51c3738 regen 2005-07-12 12:10:41 +00:00
drochner d7736f2487 update some wlan adapter information, from
http://damien.bergamini.free.fr/ral/list.html via FUKAUMI Naoki
2005-07-12 12:10:18 +00:00
cube e937141b42 Regen (*xattr(2)). 2005-07-12 07:46:19 +00:00
cube 728e5e01bd Add the *xattr(2) family of syscalls. Just like the *extattr(2) family,
they're waiting for an actual FS back-end to be tested, but are still
straightforward enough.
2005-07-12 07:45:34 +00:00
yamt d01f5b39f6 specify dma direction hints for bus_dmamap_load_mbuf. 2005-07-11 21:42:58 +00:00
cube 0477abe883 Regen (rasctl(2)). 2005-07-11 20:18:52 +00:00
cube 241e7db4d5 Add rasctl(2). Thanks to the regression tests for that syscall, I was able
to discover the bugs in netbsd32_setitimer() and netbsd32_execve().
2005-07-11 20:18:05 +00:00
cube 355bcba766 Split sys_execve() and add execve1() that does most of the work, and takes
as an argument a function that will retrieve an element of the pointer
arrays in user space.  This allows COMPAT_NETBSD32 to share the code for
the emulated version of execve(2), and fixes various issues that came from
the slow drift between the two implementations.

Note:  when splitting up a syscall function, I'll use two different ways
       of naming the resulting helper function.  If it stills does
       copyin/out operations, it will be named <syscall>1().  If it does
       not (as it was the case for get/setitimer), it will be named
       do<syscall>.
2005-07-11 20:15:26 +00:00
cube 08fd92bac5 Split sys_getitimer and sys_setitimer to make it possible to share the
relevant code with the COMPAT_NETBSD32 version, and make the latter use
the new functions.

This fixes netbsd32_setitimer() which had drifted from the native syscall
and did not work properly anymore.
2005-07-11 19:50:42 +00:00
drochner fbdec13c62 reduce the last commit to its essence; the rest was
not so helpful
2005-07-11 18:31:12 +00:00
dyoung 5d0039996f Synchronize ieee80211_find_vap, ieee80211_find_instance. 2005-07-11 17:15:30 +00:00
kiyohara c1a84a4d12 ieee1394 import from FreeBSD. 2005-07-11 15:29:05 +00:00
martin f9f7a9ee11 Make sure we get the SUN4U version of the sparc frame.h defines.
(Otherwise frame32 is undefined and compilation of the netbsd32 lkm
fails.)
2005-07-11 15:03:56 +00:00
christos 79de18714f PR/30720: Nicolas Joly: compilation failure with ACPI_FDC_DEBUG 2005-07-11 14:40:00 +00:00
christos 25e2fae9e9 Add a sunos_machdep include file to deal with MD implementations of
sunos_syscall_intern.
2005-07-11 13:14:49 +00:00
christos 2f382743c1 Add m68k sunos_machdep.h 2005-07-11 13:13:56 +00:00
christos 3e061b04ef new file 2005-07-11 13:05:33 +00:00
dyoung 55512dd5b2 Add undefined variable 'ic' to rtw_attach. 2005-07-11 06:01:42 +00:00
uwe 51d0cd96db Implement syscall_intern for sh3. 2005-07-10 22:27:20 +00:00
thorpej f5546fc71e Move the rest of the extattr stuff into vfs_xattr.c 2005-07-10 22:10:00 +00:00
thorpej 9c6adeffa0 Regen:
Add Linux-compatible {,fl}{get,set,list}xattr() system call interface
to the VFS extended attribute subsystem.
2005-07-10 22:05:24 +00:00
thorpej ccbebfaaf1 Add Linux-compatible {,fl}{get,set,list}xattr() system call interface
to the VFS extended attribute subsystem.
2005-07-10 22:04:20 +00:00
dyoung ac7254c1e3 Cosmetic: the '_type' argument to ATH_LOCK_IMPL and family is more
properly called '_obj'.
2005-07-10 19:07:39 +00:00
christos 61a46bc6b1 pass the code out of getargs, so that ktracing __syscall using syscalls
works.
2005-07-10 19:05:47 +00:00
dyoung c23eb30613 Bring an_newstate up-to-date with net80211 conventions. Now an(4)
works again.  Jonathan Perkins reported the bug and tested the
patch.
2005-07-10 19:04:00 +00:00
christos f1f78efdd1 Now that sparc has syscall intern, no need to define it here too. 2005-07-10 17:02:51 +00:00
christos aed9aed801 - add syscall_{plain,fancy}
- make it use mi_userret
2005-07-10 17:02:19 +00:00
christos dac018add9 More syscall_intern lossage. 2005-07-10 16:45:33 +00:00
christos 24d0f10c0f define sunos_syscall_intern now that sparc needs it. 2005-07-10 16:40:49 +00:00
cube 0057da6efa NOFOLLOW should be passed to NDINIT() instead of FOLLOW for lstat(2).
Reported by Martin Husemann.
2005-07-10 16:34:53 +00:00
uwe b044b5b620 Cosmetic: drop leading underscores from the volatile keyword. 2005-07-10 16:24:29 +00:00
uwe 496eb1f350 Cosmetic: use uintN_t, drop leading underscores from the volatile
keyword, use extern in function declarations.
2005-07-10 16:21:01 +00:00
martin 17668059a3 Add siginfo based signal delivery. 2005-07-10 16:15:19 +00:00
macallan d091c8c1bb added Tadpole TS102 SBus-PCMCIA bridge driver (tslot) and a couple of PCMCIA card drivers 2005-07-10 15:49:12 +00:00
macallan 8d4c3dfddd added Tadpole TS102 SBus-PCMCIA bridge driver (tslot) 2005-07-10 15:47:37 +00:00
martin d6c7a12fb5 Fix COMPAT_NETBSD32 ucontext padding and move the definition next to the
(sparc) original.
2005-07-10 15:44:23 +00:00
cube 4a8942e74c Regen. 2005-07-10 14:32:35 +00:00
cube 7e3a28a419 Add support for fsync_range(2). 2005-07-10 14:32:16 +00:00
cube cbb77bc452 The comment listing the arguments of fsync_range(2) wrongly described
"length" as an int.  It is an off_t.
2005-07-10 14:26:02 +00:00
cube c6a5f27efa Regen. 2005-07-10 11:29:35 +00:00
cube b01a57e4ce Implement __clone(2). 2005-07-10 11:28:58 +00:00
cube 91598566dc Report changes from sys_wait4(). 2005-07-10 11:28:03 +00:00
christos b132d4d5fd Fix typo 2005-07-10 09:22:56 +00:00
martin ba7a82bf5c Add SUPPORT_DHCP - otherwise bootp does not work (packet is too short for
root-path). From Christos.
2005-07-10 08:40:21 +00:00
dyoung 9e9d2907ec Cosmetic: reunite a comment with the code it describes. 2005-07-10 08:12:50 +00:00
dyoung 0e4587ae92 Bug fix: reset saw_bss when we start iterating over a new interface's
nodes, so that we list every interface's ic_bss node, instead of
listing only the first interface's.
2005-07-10 08:11:40 +00:00
christos 9f68247977 Turn on dhcp support. 2005-07-10 06:40:35 +00:00
christos 4a35068121 Small correction to skd's patch from darren. 2005-07-10 05:49:38 +00:00
christos 7460ad1f15 matt asked for his 32<->64 debugging back. 2005-07-10 05:17:37 +00:00
christos bafe6873ac Remove sparc from the delinquent ports. The standard culprits are still
present of course.
2005-07-10 04:35:38 +00:00
christos ecc4f71237 define syscall again. 2005-07-10 04:23:30 +00:00
christos ec1dc88c1d define syscall here. 2005-07-10 04:20:34 +00:00
christos 67f3bd4030 don't define syscall() here because the archs that don't have syscall_intern
yet, define syscall with different signatures in trap.c
2005-07-10 04:19:14 +00:00
christos 3439f8bdc3 move some more code out to getargs to match the upcoming sparc. 2005-07-10 02:34:42 +00:00
christos 415655638b Forgot to add this. 2005-07-10 01:58:57 +00:00
thorpej 4457fd076f Defflag UFS_DIRHASH. 2005-07-10 01:08:52 +00:00
christos 4d0656f353 include the _32 flavor of the machdep file too. 2005-07-10 00:56:19 +00:00
christos 6667cfbdab We have syscall_intern now. 2005-07-10 00:56:01 +00:00
christos df1b79805d don't declare syscall and syscall_intern. 2005-07-10 00:54:54 +00:00
christos 1e568eda97 Re-factor syscall, and make it use syscall_{plain,fancy}. 2005-07-10 00:50:16 +00:00
christos f1461c7e8a No point in declaring syscall_intern and syscall in a zillion places. 2005-07-10 00:45:52 +00:00
thorpej 175c3312a8 - Use ANSI function decls.
- Sprinkle some static.
2005-07-10 00:18:52 +00:00
cube 16e20b37d6 Regen. 2005-07-09 22:40:34 +00:00
cube 57017881b4 Implement pselect(2) and pollts(2). 2005-07-09 22:40:13 +00:00
cube 0056ee71b1 Make netbsd32_select() use selcommon() instead of a gross copy/paste of
the old sys_select() code.
2005-07-09 21:58:09 +00:00
christos 20dd96aff1 Don't drop fragments that are smalled than the ip header size. From skd 2005-07-09 14:51:11 +00:00
xtraeme 997ffdbad9 Move ipl.h into the ipfilter block, which is the right place. 2005-07-09 14:15:11 +00:00
christos d39684a368 make the isdn drivers compile again with -Wconst, -Wshadow 2005-07-09 02:05:09 +00:00
thorpej 76fd10b45a Move VFS extended attribute support to its own file. 2005-07-09 01:05:23 +00:00
cube 0d4567cd91 Regen. 2005-07-08 22:22:19 +00:00
cube 01f1f7ce7d Add mlockall(2) and munlockall(2). 2005-07-08 22:21:43 +00:00
cube e1c5d71d3d Regen 2005-07-08 21:40:26 +00:00
cube dfc332d6df Implement the extattr(3) family of syscalls.
XXX However, those remain untested as there are currently no backend for
XXX extattr(9) in NetBSD.
2005-07-08 21:39:39 +00:00
thorpej 3429324371 Whitespace tweaks. 2005-07-08 16:13:32 +00:00
thorpej 99c4ea1319 - Use ANSI function decls.
- Liberally apply static.
2005-07-08 05:07:31 +00:00
tron b7be5e481c Defopt IPSEC_NAT_T. 2005-07-07 19:34:51 +00:00
thorpej 9beb4d2c61 Remove the __packed__ attribute from these structures. Everything is
naturally aligned anyway, and __packed__ just causes the compiler to
generate slower code.
2005-07-07 19:02:11 +00:00
thorpej 0be3d66be4 Apply const and static where appropriate. 2005-07-07 18:43:47 +00:00
drochner a8dbed44ea tighten the autoconf constraints by passing the atapi/ata/ata_hl attribute
to config_found()
(after some cleanup we might be able to kill SCSIPI_BUSTYPE_*)
2005-07-07 17:51:31 +00:00
drochner 4a286e2d41 -tighten the autoconf constraints by passing the atapi/scsi attribute
to config_found()
 (after some cleanup we might be able to kill SCSIPI_BUSTYPE_*)
-remove scsipiprint() -- the parts which make it differ from
 scsiprint()/atapiprint() were unreachable anyway
2005-07-07 17:27:37 +00:00
tron 04b9c3437f Add (commented out) IPSEC_NAT_T option. 2005-07-07 17:05:46 +00:00
nonaka ba180bf75f Added EMODE cache operation. 2005-07-07 16:56:50 +00:00
tron 58b513c9f5 Defopt IPSEC_NAT_T. 2005-07-07 16:00:56 +00:00
christos d9a0117f1e Back to using curproc in the VLNK case when uiop->uio_procp == NULL,
and explain why we need to.
2005-07-07 14:26:37 +00:00
tron 17c8267bba Fix typo which broke the build of kernels with support for 586 and
686 class CPUs.
2005-07-07 13:20:53 +00:00
christos 66e17a310f add a missing const. 2005-07-07 12:57:03 +00:00
yamt 300f70f6e0 handle tx buffer exhaustion. 2005-07-07 12:01:25 +00:00
pooka b0e100a5fc match & attach Panasonic 50" Touch Panel 2005-07-07 09:59:37 +00:00
pooka 520b2cddab regen for panasonic tp 2005-07-07 09:59:09 +00:00
pooka 1a814357c3 add panasonic 50" touch panel 2005-07-07 09:58:23 +00:00
christos c7f5a1fb60 1. use p = uio->uio_procp consistently and eliminate suspicious uses
of curproc (where uio->uio_procp should be used?). Don't do this
   for nfs_commit(), because yamt says it is possibly wrong.
2. nfs_doio() does not use struct proc; remove it and the code to compute it.
3. use copyin_proc() and copyout_proc() instead of copyin() and copyout().
4. check return of copyout_proc(). and mark return from copyin_proc() XXX
5. Eliminate check p == curproc assertion check from nfs_write;
   nfs_read does not have it and we might be called in a different
   process context anyway (PR 20138).
2005-07-07 02:05:03 +00:00
dyoung 0b81c10899 Cosmetic: use the idiom &ic->ic_nw_keys[0] instead of ic->ic_nw_keys,
just be a little more parallel to &ic->ic_nw_keys[IEEE80211_WEP_NKID]
on the same line.
2005-07-07 00:43:01 +00:00
dyoung 86283b24c9 Don't write WEP keys to the chip unless it is enabled.
Suspend and restart the transmit/receive engines while writing WEP
keys.
2005-07-07 00:12:22 +00:00
christos ac0ee9b2c0 Allow F{G,S}OWN to succeed on a tty that has no session associated with it,
and it is not the controlling tty. This change allows us to use SIGIO on
a non-controlling tty (eg. debug ntpd with a refclock on a tty).
2005-07-07 00:01:32 +00:00
dyoung 83a9bf2c5c Historically, an(4), ath(4), atw(4), rtw(4), and wi(4) have printed
out their modes and rates at boot.  Revert to the historical
behavior.
2005-07-06 23:58:14 +00:00
dyoung 707b2b4ae1 Avoid an unnecessary API difference between NetBSD and FreeBSD:
back out my change to ieee80211_crypto_encap that made it free its
mbuf argument on error.  I had thought it was a bug.  It was not.
It's the drivers that are broken.  Make an(4), atw(4), ipw(4),
iwi(4), ral(4), rtw(4), ural(4), and wi(4) free the mbuf when
ieee80211_crypto_encap returns NULL.  Also, return ath(4) to the
way it was---i.e., free the mbuf.

Thanks to Sam Leffler to pointing out my mistake.
2005-07-06 23:44:15 +00:00
thorpej f44b62c49d Collect vmcmd statistics. 2005-07-06 23:08:57 +00:00
christos de124326cb Make copy{in,out}_proc work on all processes (including curproc) by
special-casing the curproc case. Use copy{in,out}_proc directly instead
of checking for curproc each time. Discussed with thorpej.
2005-07-06 22:30:42 +00:00
kleink c6cc410a70 Addendum to previous: copyin_proc() must not be used on curproc. 2005-07-06 20:56:49 +00:00
kleink e3c2a9c2f6 Use copyin_proc() to peek for trailing zeroes in sections, as we might be
running in a different context (i.e. a process tracing).
2005-07-06 20:31:33 +00:00
fair 97be9dc692 disable the use of TSC on Cyrix CPUs and document why:
When powersave mode is enabled, the TSC stops counting while the CPU is halted
in idle() waiting for an interrupt. This means we can't use the TSC for
interval time in microtime(9), and thus it is disabled here.

It still makes a perfectly good cycle counter for program profiling, so long
as you remember you're counting cycles, and not time. Further, if you don't
mind not using powersave mode, the TSC works just fine, so this should really
be optional. XXX
2005-07-06 20:29:16 +00:00
junyoung 6b3daf3992 Remove unused #define. 2005-07-06 19:31:04 +00:00
junyoung d151b9e857 Remove unused #define and trailing spaces. 2005-07-06 19:29:50 +00:00
junyoung a52d20370c Remove unused #define. 2005-07-06 19:27:50 +00:00
junyoung 1fb48c245e - Do not mix C-style comments and assembly-style comments.
- Remove unused #define.
2005-07-06 19:24:08 +00:00
thorpej d697722880 A few tweaks to magic symlinks:
- Add a @{var} syntax in addition to @var.  This allows for patterns like
  @{ostype}-@{osrelease}-@{machine_arch}.
- Add a @emul variable that expands to the process's emulation name
  (e.g. "netbsd", "netbsd32", "linux", etc.)
2005-07-06 18:53:00 +00:00
fair c0ca9de9a9 move
microtime_func = cc_microtime;

to a point after the CPU-specific setup routine is called because some of them
"turn off" the TSC because it's broken on those platforms, or not suitable
for use as an interval timer.

One such platform is the Cyrix/NSC Geode processor; when powersave mode is
enabled, the "hlt" instruction stops the TSC too. It continues to be perfectly
reasonable for program profiling as a cycle counter in this mode, but it is
unsuitable for interval time keeping (time doesn't stop just because you're
asleep or napping), and, for now, we don't have a separate flag to make this
distinction - we just test for the presence of TSC to enable cc_microtime().
2005-07-06 18:35:39 +00:00
junyoung 4f4cb6f0b3 Add another case we can skip boot wait. 2005-07-06 18:12:31 +00:00
bouyer a5bc956f51 Always allow open() on the raw partition to succeed, even if any of the
SCSI command in cdopen() fails. Fix PR kern/30288 by Pavel Cahyna.
2005-07-06 14:28:39 +00:00
macallan b105560197 sysmon_* attributes for device tctrl 2005-07-06 12:16:35 +00:00
macallan 2e4b899a81 forgot the $NetBSD header 2005-07-06 11:42:53 +00:00
macallan f4a919f68e Add support for the TS102 PCMCIA controller found in SPARCbooks 2005-07-06 11:40:27 +00:00
macallan d3e4755bf5 changed envsys support to use the sysmon API, added support for the power
button ( see powerd(8) )
2005-07-06 11:31:16 +00:00
junyoung 1b3dbc9530 If no hard disks are present, do not wait for key press. 2005-07-06 09:22:31 +00:00
junyoung 4a6d325623 De-__P() 2005-07-06 08:28:31 +00:00
junyoung ddfd23b21c BIOSDISK_EXT13INFO_V3 -> BIOSDISK_EXTINFO_V3
u_intNN_t -> uintNN_t
u_int -> unsigned int
Remove trailing spaces
2005-07-06 08:27:31 +00:00
dyoung 674e9b926b Identify Alvarion Ltd. BreezeNET PC-DS.11b. Addresses kern/30231. 2005-07-06 07:16:00 +00:00
dyoung b01131baed Regen. 2005-07-06 07:06:29 +00:00
dyoung b34605c1a7 Add Alvarion (vendor) and Alvarion Ltd. BreezeNET PC-DS.11b (product).
From PR kern/30231.
2005-07-06 07:05:25 +00:00
dyoung 05cab81dd8 Don't write the WEP keys to the device if it is invalid (e.g.,
unplugged) or if it is not enabled.  Fixes kern/30592.
2005-07-06 06:49:25 +00:00
thorpej 527d62e0a2 - When starting an ATA or ATAPI transfer, handle the case where (*dma_init)()
returns EINVAL, indicating that DMA cannot be done for this transfer.
  Fall back to PIO in this case.
- Add a geodeide_dma_init() routine that checks to make sure that transfers
  start on a 16 byte boundary, returning EINVAL if not.  Works around a chip
  bug that causes a hard system hang.

Problem reported and patch tested by Erik Fair.
2005-07-06 01:46:52 +00:00
he 053b017df8 Wrap use of MALLOC_DECLARE() within an #ifdef _KERNEL, it's declaration
in sys/mallocvar.h is within a similar conditional.
Fixes build problem for vax.
2005-07-05 23:04:14 +00:00
he c92bbdc733 Follow up after adding const by doing some more. 2005-07-05 22:20:47 +00:00
he 3bed0ba4dd Add const to arrays initialized with string constants.
Found while compiling for vax (why wasn't this caught by newer gcc?)
2005-07-05 22:15:41 +00:00
tron 655544a062 Comment out the less popular 3Com 3c507 and reenable the 3c503 as
suggested by Jason Thorpe and Manuel Bouyer on the port-i386 mailing list.
2005-07-05 21:17:38 +00:00
dyoung 83285d3445 In ieee80211_refine_node_for_beacon, do not decrease the reference
count on the node that is passed in, because it belongs to the
driver.  Also, do not increase the reference count on the refined
node, because ieee80211_refine_node_for_beacon's caller (ieee80211_input)
will never decrease the reference count.

As a general rule, reference counts are used for driver code to
assert ownership of ieee80211_nodes that are shared by the driver
and net80211 layer.
2005-07-05 19:56:04 +00:00
tron 96109dd1ae Comment out drivers for 3Com 3C501, 3C503 and 3C505. These cards weren't
very common and had more or less severe restrictions. This finally fixes
the NetBSD-i386 release build.
2005-07-05 15:00:33 +00:00
kleink 58a82aeec2 Include <sys/cdefs.h> for __signed. 2005-07-05 08:15:34 +00:00
augustss c65a426711 Add auixp. 2005-07-05 07:11:52 +00:00
jdc 93bdac459d Only set up the console screen on the console ffb.
Fixes bug where ttyE0 ends up on the 2nd ffb.
Based on dev/sun/cgsix.c:r1.27 (from macallan@).
2005-07-04 22:18:37 +00:00
drochner 6d8bb016f7 update PCI/Cardbus ral wlan driver, and adapt to new FreeBSD/NetBSD
80211 framework, from FUKAUMI Naoki per mail to tech-net
2005-07-04 17:50:09 +00:00
drochner c2ddc13a41 some fixes and cleanups to the USB-ral wlan adapter, from FUKAUMI Naoki
per mail to tech-net
2005-07-04 17:46:31 +00:00
drochner 95ecbce6dc regen 2005-07-04 17:43:15 +00:00
drochner f63f021442 add another wlan adapter 2005-07-04 17:42:39 +00:00
drochner e224b50008 some autoconf cleanup fallout, leftover of last week, mostly from
Havard Eidnes
2005-07-04 15:18:17 +00:00
pooka 5b4bcc52c2 Adapt conf for PXA2X0 split to PXA250 and PXA270. 2005-07-04 14:10:23 +00:00
martti 253c8a14af Added support for amr. Tested by Joseph A. Dacuma with Dell PowerEdge 2800. 2005-07-04 13:43:45 +00:00
blymn dadd214d32 Reverse renaming of variable (pd_ents -> pdes) since the clashing
declaration in pmap.h was not used so it was removed from there.
2005-07-04 12:06:14 +00:00
blymn 177ce69567 Remove bogus external declaration for pdes, it appears not to be needed. 2005-07-04 11:50:17 +00:00
augustss 3cadf15c43 Uncomment ehci. It works fairly well now. 2005-07-04 05:57:02 +00:00
augustss b9c28e0fc4 Regen. 2005-07-04 05:55:26 +00:00
augustss 1f2a8d34c4 Correct product id for the Hank Connection device. 2005-07-04 05:55:05 +00:00
dyoung 458bd292c0 Our bus_space_{read,write}_4 routines convert from host to bus
byte-order, but FreeBSD's does not.  ath(4) expects the FreeBSD
convention.  Meet ath(4)'s expectations, use
bus_space_{read,write}_stream_4, instead.

Now, the HAL seems to work on macppc.
2005-07-04 05:35:09 +00:00
dyoung eaadb988fd #define AH_REGOPS_FUNC 1 to match athhal-powerpc-be-eabi.opt_ah.h. 2005-07-04 05:32:16 +00:00
bsh 5775b1bc3e Reduce 1K bytes of code size by gathering calls to panic into one
subroutine.
2005-07-04 02:03:27 +00:00
augustss dd0aaa93b5 The SB400 SATA controllers seem to work fine for me with this driver. 2005-07-04 01:20:37 +00:00
bsh be2e0be463 adapt to changes for PXA270 support. 2005-07-04 00:47:49 +00:00
bsh c48d9c757e option CPU_XSCALE_PXA2X0 is now obsoleted by CPU_XSCALE_PXA2[57]0. 2005-07-04 00:46:04 +00:00
bsh c61364bf3e The first step to support Intel PXA270.
kernel config option CPU_XSCALE_PXA2X0 is now obsoleted by
CPU_XSCALE_PXA250 and CPU_XSCALE_PXA270.  If both of them are defined,
CPU is determined run-time.
2005-07-04 00:42:36 +00:00
bsh c5dfef4764 add register definitions for PXA270, including those for USB host controller.
rename some constants from PXA2X0_* to PXA2[57]0_* since they have different values for PXA270.
2005-07-04 00:27:24 +00:00
cube a31209bb48 Regen 2005-07-04 00:27:15 +00:00
cube d500f440df Implement uuidgen(2). 2005-07-04 00:26:06 +00:00
he b50b7d812b Make the bus_scan() prototype match the function declaration. 2005-07-03 23:13:11 +00:00
he e831e8461d Make the vidcsearch() prototype match the function declaration. 2005-07-03 23:09:03 +00:00
he 330b756048 Make the prototype declaration of maplesubmatch() match the function decl. 2005-07-03 23:06:51 +00:00
manu 771a32d331 Another NAT-T fix: don't check for port information in transport mode, as there
is no port information.
2005-07-03 22:57:09 +00:00
he d9075d644b We need to name parameters in function declaration... 2005-07-03 22:23:56 +00:00
he e1ffd766c2 Make the bugscopen() function match it's prototype. 2005-07-03 22:22:50 +00:00
he 7a4c4764d9 Remove "bad" label no longer in use. 2005-07-03 22:21:10 +00:00
uwe 70d5ff6a8a Make this file suitable for use in asm sources. 2005-07-03 22:18:32 +00:00
dyoung 8feed843ef Restore ALTQ-classification to the AP-bridge, as pointed out by
Bernd Ernesti.
2005-07-03 21:18:42 +00:00
dyoung fdf8c16f71 Refine an ieee80211_node-match using the SSID and the channel before
increasing the _node's beacon/probe count.
2005-07-03 21:10:27 +00:00
dyoung c511c45965 Don't load the ic_bss node into the sysctl result twice, as we
would do in IBSS mode if the ic_bss had not expired from the
scan/neighbor node-table.
2005-07-03 20:44:46 +00:00
dyoung c1446c092d Locking changes.
+ Synchronize ath_calibrate() with ATH_LOCK()/ATH_UNLOCK().  Thanks
  to Steve Woodford for suggesting this fix.  This patch stops
  ath(4) from generating messages "hardware error; resetting" while
  Steve's D-Link DWL-AG650 card is operating (kern/28385).  The
  MiniPCI wireless adapter on one of my Soekris boards also operates
  more reliably following this patch.

+ Use ATH_LOCK_IMPL() and family to synchronize access to the
  transmit queue, also.
2005-07-03 19:58:16 +00:00
dyoung f069ffb8c5 Create per-instance sysctl nodes for ath(4), e.g., hw.ath0.debug,
hw.ath1.debug.
2005-07-03 19:44:50 +00:00
dyoung 3ba3e0571b Bug fix: send all multicast data frames at the lowest possible data
rate, with short preamble turned *off*.  Fixes IBSS operation,
where multicast frames were sent at the highest possible rate with
short preamble turned *on*, so the likelihood of reception was
relatively low, and there was no chance for stations w/o short
preamble capability to receive the frames.

XXX This is a quick fix that I will revisit very soon.  Multicast
data frames are eligible to be sent with short preamble in
IEEE80211_M_STA, IEEE80211_M_HOSTAP modes.  An AP knows who all of
its peers are at all times, so it can make an intelligent decision.
Ditto the AP client.

XXX The rate adaptation should be involved in choosing short/long
preamble.  Also, we can make a reasonable choice of a higher
multicast data rate based on statistics gathered by the rate
adaptation module.
2005-07-03 19:42:10 +00:00
dyoung 967b5afe90 Cosmetic: repair indentation. 2005-07-03 19:31:03 +00:00
cube c4b8c745b9 Remove 'scsibus* at umass?'. It shouldn't be needed, as umass correctly
defines the scsi attribute.  So if a device doesn't work without that
attachment, it means there is a bug elsewhere we have to fix.
2005-07-03 19:23:29 +00:00
bsh af51d61dc0 make this compile again.
+ fix wrong prototype for obio_search()
 + avoid warning by const.
ANSIfy obio_search()
2005-07-03 18:10:53 +00:00
uwe a761e60e47 Add SH_INTEVT_WDT_ITI in intc_intr_priority. 2005-07-03 17:59:10 +00:00
cube 72f6b3a65c Constify machine32 and machine_arch32. 2005-07-03 17:18:02 +00:00
bsh d8876765c5 + use constants defined in xscalereg.h instead of 0x0001.
+ clear CPU cycle counter in pxaip_measure_cpuclock()
+ style.
2005-07-03 16:57:44 +00:00
cube 6f082c10a9 Make COMPAT_NETBSD32 emulate hw.machine. While it might seem wrong to do
so, it introduces breakage because a lot of applications make assumptions
from its value.  It's especially bad in the sparc64 case, where 64-bits
instructions can be used in 32-bits addressing mode.  However, there are
other means to know the capabilities of the CPU.
2005-07-03 16:53:46 +00:00
isaki 1328d7e8b2 Simplify pseudo-devices. 2005-07-03 13:09:17 +00:00
nonaka 654f6d544d fix timer prescaler definition. 2005-07-03 12:38:38 +00:00
cube 65570c38ef Move definitions for PCI_*_FIXUP to files.x86 so that ACPI compiles for
amd64...
2005-07-03 12:16:05 +00:00
isaki 426d6d0839 cfmatch_t was removed at sys/device.h rev 1.75,
and there is no need to cast for NULL.
2005-07-03 10:22:25 +00:00
he 34cf717530 Delete now unused "bad" label. 2005-07-02 23:08:21 +00:00
rpaulo f9ef5df9fc Uncomment WSDISPLAY_SCROLLSUPPORT. A lot of people ask for this feature
and it doesn't make much sens to recompile just to have scrolling support.

Ok'ed by Christos Zoulas and Hubert Feyrer.
2005-07-02 11:19:23 +00:00
dsainty 9c7c838ae3 bthcipoll must not return <sys/errno.h> error codes, return POLLERR/POLLHUP
instead.  Fixes a small part of PR/30566.

Also check for a set 'dying' flag here, and include it in the POLLHUP
case.
2005-07-02 07:50:34 +00:00
blymn 39f1a744f7 Add attach call so coda gets added to list of vfs supported by the kernel. 2005-07-02 07:05:27 +00:00
dsainty 867423adde Force LBA48 access to ST3160827AS drives. Without this change the entire
system hangs whenever a read or write request to sector 0xfffffff occurs.

The hang appears to happen when:

status = bus_space_read_1(wdr->cmd_iot, wdr->cmd_iohs[wd_status], 0);

is executed in __wdcwait(), and it is not possible to enter the debugger or
make the system respond at all after this point.

Whilst not necessarily the most prudent solution to handling the large number
of drives that exhibit this problem, it is currently the popular workaround.

[An alternative approach is to just always drop to LBA48 if the request
happens to pass by sector 0xfffffff and the drive reported as larger than
0xfffffff sectors.  My understanding is that the 32 bit addressing below
0x10000000 is purely there as a performance booster, not to resolve a
compatibility issue.]
2005-07-02 04:29:01 +00:00
martin 50d158617a Delete now unused "bad" label 2005-07-01 20:16:24 +00:00
drochner 8728cee448 add autoconf glue for the ralink wireless drivers, basically from
PR kern/30449, but changed so that pci/cardbus and usb devices
are all called "ral" to the user, so that code can be shared eventually
2005-07-01 20:11:20 +00:00
drochner c1834d85c2 add drivers for Ralink RT2500-based wireless adapters, written by
Damien Bergamini, ported and submitted by FUKAUMI Naoki per PR kern/30449
I've modified the USB "ural" driver for recent changes to the NetBSD
ieee80211 framework, possibly not completely, but with an ASUS wireless
adapter I'm getting some signs of life.
Didn't care about pci/cardbus for now, hopefully someone with hardware
will do it.
2005-07-01 20:06:56 +00:00
elad ab856de1bc Use `const struct sysctlnode *veriexec_count_node' so it works with the
recent changes in sysctl(9).
2005-07-01 19:50:04 +00:00
drochner 13d05c6f40 regen 2005-07-01 19:39:13 +00:00
drochner 35afa0f995 add ralink dev IDs, from FUKAUMI Naoki per PR kern/30449 2005-07-01 19:37:59 +00:00
christos 6d30dcee75 PR/29607: Christian Biere systrace doesn't handle interrupted syscalls properly
Instead of jumping to the default "bad" case, jump to the error handling
switch, so that we can deal with ERESTART/EJUSTRETURN properly.
2005-07-01 18:01:44 +00:00
martin 5d90a83160 constify 2005-07-01 15:05:07 +00:00
peter 9710741485 Resolve conflicts (pf from OpenBSD 3.7, kernel part). 2005-07-01 12:37:34 +00:00
augustss d4af4ffb2b Regen. 2005-07-01 11:37:10 +00:00
augustss 606a246ce6 Add Hank wireless keyboard&mose used by HP. 2005-07-01 11:36:39 +00:00
augustss 28a18a32db Add ixpide so we handle ATI controllers specially. 2005-07-01 11:03:14 +00:00
augustss 6f150bbce9 Regen. 2005-07-01 11:00:23 +00:00
augustss 7f1e7d90e6 Add the ATI SB400 chip set and the Radeon X850 XT graphics card. 2005-07-01 10:59:32 +00:00
sekiya 13e5f23389 Fix up interrupt line when line == 0. Discussed with christos@ 2005-06-30 22:28:03 +00:00
christos 66276ec095 There is an error when we return -1, not < 1. 2005-06-30 19:31:53 +00:00
elad 5e01283b99 Use gid_t for stra_setegid. 2005-06-30 18:20:24 +00:00
drochner 996c273eda adaptions to config_search() change, and minor autoconf fixes, mostly from Havard Eidnes 2005-06-30 17:03:51 +00:00
nonaka f3987f5dbb remove EMODE support code.
- EMODE support doesn't work fine yet.
- This code is broken for dreamcast.
  dramcast call sh4_icache_sync_all() before sh4_cache_config().
  (at locore.S)
2005-06-30 15:14:46 +00:00
tron b1be36cfb8 Don't use a static buffer in SHA1Transform() because it might cause
various problems including sporadic IPSec authentification failures
if this code is used by multiple instances in parallel.
2005-06-30 13:08:46 +00:00
macallan 754d79402b Allow sparc64-style attachment of mouse and keyboard via zstty, needed for
wscons support.
Reviewed by uwe.
2005-06-30 12:07:51 +00:00
simonb 8c9f710db0 We don't need a.out loadfile support for evbppc - this port has only
ever been ELF.
2005-06-30 07:47:29 +00:00
christos a85b0c68e0 Normalize our PAWS code with Free and Open, as mentioned in tech-security. 2005-06-30 02:58:28 +00:00
dyoung 380ab420c3 Fix $FreeBSD$ RCS IDs, which gave me a real shock when their revision
numbers moved backwards.
2005-06-30 00:52:56 +00:00
junyoung c95e3281de KNF. 2005-06-29 19:08:04 +00:00
junyoung f10ef234b8 Massive renames for consistency:
biosdiskreset -> biosdisk_reset
 biosread -> biosdisk_read
 get_diskinfo -> biosdisk_getinfo
 int13_extension -> biosdisk_int13ext
 biosextread -> biosdisk_extread
 int13_getextinfo -> biosdisk_getextinfo
 struct biosdisk_ext13info -> biosdisk_extinfo
 BIOSDISK_EXT13 -> BIOSDISK_INT13EXT
 BIOSDISK_EXT13INFO_V{2,3} -> BIOSDISK_EXTINFO_V{2,3}
 EXT13_* -> EXTINFO_*
2005-06-29 18:50:38 +00:00
junyoung beeb6c877c get_diskinfo():
Return status code in bits [31:24] of %eax. 0 for success, otherwise failure.
2005-06-29 18:02:52 +00:00
christos d3f92bb5dc additions from nonaka's landisk port. 2005-06-29 16:56:58 +00:00
christos 63fcf30b44 more additions from nonaka's landisk port. 2005-06-29 16:51:20 +00:00
christos 104d75eb91 more info for sh4 from nonaka's landisk port. 2005-06-29 16:31:51 +00:00
christos 5caa083144 more register definitions, from nonaka's landisk port. 2005-06-29 16:25:58 +00:00
christos 1c0b7f1f92 Need 2ms delay (from nonaka's landisk port). 2005-06-29 16:23:45 +00:00
kent 920709a3ed add:
acphy acpi acpiacad acpibat acpibut acpiec acpilid acpitz agp
ahd amhphy artsata ataraid ath bge bmtphy brgphy cec ciphy cms
cs80bus esiop gentbi geodeide glxtphy gphyter gpib gsip hcide
iavc ipw iteide iwi iwic makphy mpt nsclpcsio pdcsata pxg
satalink ste stge sti tfb txp ubsa ubsec udav
2005-06-29 14:57:22 +00:00
ragge 13b4a4e8ea Print manufacturing plant information at boot, from Johnny Billquist. 2005-06-29 14:02:54 +00:00
christos f824681018 People might need MFS for /dev or for restoring to /tmp. 2005-06-29 01:40:17 +00:00
christos 316b5f711e Make this fit:
1. remove MFS, not useful during installation.
2. remove extra ethernet drivers, some of them cannot be used without firmware.
3. remove pty multiplexor
4. remove ddb history
5. remove a.out support
6. trim down maxusers to 2
7. remove the beep device driver
8. remove nfsv3 support

One more commit to /usr/bin/ftp and everything will build again...
2005-06-28 22:57:19 +00:00
junyoung e63501d234 #include <lib/libsa/stand.h> rather than <stand.h> or "stand.h" 2005-06-28 21:00:41 +00:00
junyoung efdde612c9 - ANSI & KNF.
- #include <lib/libsa/stand.h> rather than <stand.h>.
2005-06-28 20:55:55 +00:00
macallan c3d39ccf44 deal with more than one cgsix, make sure to get things right even when none
of them is the console.
2005-06-28 20:55:21 +00:00
junyoung 886a08c247 - ANSIfy, remove trailing spaces.
- Put /* FALLTHROUGH */ to make lint happy.
2005-06-28 20:51:19 +00:00
junyoung 9cc4222d48 Cosmetic changes, notably drop trailing spaces. 2005-06-28 20:44:49 +00:00
junyoung f174987abc De-__P() and some cosmetic changes. 2005-06-28 20:30:46 +00:00
junyoung c42b06f995 ANSI & KNF. 2005-06-28 20:26:04 +00:00
junyoung e5d633d728 ANSI, KNF, drop trailing spaces, and etc. 2005-06-28 20:23:50 +00:00
drochner 9b0c17575e constification fallout 2005-06-28 20:23:02 +00:00
junyoung cd62ed2ea9 ANSIfy and remove trailing spaces. 2005-06-28 20:15:29 +00:00
junyoung d305a14978 ANSI, KNF, etc. 2005-06-28 20:13:25 +00:00
seanb 262c8cc8a7 - Rearranged layout of struct bridge_iflist slightly to
make members naturally aligned.
- This saves 8 bytes worth of pad.
2005-06-28 20:09:44 +00:00
junyoung 7bac1211f4 ANSI, KNF, trailing spaces, and etc. 2005-06-28 20:06:19 +00:00
junyoung e82b73153c ANSIfy & remove trailing spaces. 2005-06-28 20:01:17 +00:00
junyoung 9b06a3a704 - Use FS_OPS() macro.
- #include <lib/libsa/stand.h> rather than <stand.h>. Do the same thingfor
  ufs.h as well.
- Remove trailing spaces.
- Some other cosmetic changes.
2005-06-28 19:57:56 +00:00
drochner 2b1a908048 kill questionable uses of config(8) generated xxxlocnames[]
locator information does belong elsewhere and definitely shouldn't
be in the global namespace
2005-06-28 19:46:47 +00:00
seanb d7185c5796 - Return ICMP_UNREACH_NET when no route found as per
section 4.3.3.1 of rfc1812.
2005-06-28 19:38:58 +00:00
drochner de48323ae9 typo in comment 2005-06-28 19:16:02 +00:00
drochner 0ca89e9c3a clean up duplication which was to support the old (not locator passing)
API for bus "submatch" functions
2005-06-28 18:37:34 +00:00
drochner b081eee072 convert remaining autoconf bus "submatch" functions to use the new
signature (passing locators), and remove some which obviously don't
serve any purpose
(untested, sorry)
2005-06-28 18:29:58 +00:00
kml dab4c6d721 Ensure that we change the size of the vnode at the same time as
we change the size of the inode, and use ext2fs_size uniformly.
This fixes a crash that occurs when I create a directory, then
move it, all on an ext2 filesystem.
2005-06-28 16:53:14 +00:00
christos 853504efa1 Add some casts to appease lint 2005-06-28 15:33:27 +00:00
junyoung 97412acee5 ANSIfy, KNF, remove trailing spaces, and etc. 2005-06-28 14:52:07 +00:00
junyoung 6fd6afff50 Remove trailing spaces. 2005-06-28 14:45:47 +00:00
junyoung 3fccb28fa9 Cosmetic changes. 2005-06-28 14:43:26 +00:00
junyoung 6cb3e5962d ANSIfy & remove trailing spaces. 2005-06-28 14:41:47 +00:00