155165 Commits

Author SHA1 Message Date
kardel
dbbbd5d806 import NTP 4.2.4 2007-01-06 19:45:21 +00:00
jmcneill
e80795da77 Comment out icsphy and ukphy for now; this makes both 1.1 and 1.6 Xboxes
boot. From Andrew Gillham.
2007-01-06 19:29:36 +00:00
jmcneill
643b8aef05 Report the version string from the PIC16LC. 2007-01-06 19:11:08 +00:00
cube
c93963e680 Make deffilesystem check all defined options, not just defopttab (which
ought to be empty nowadays).
2007-01-06 18:54:32 +00:00
cube
303f904375 config(1) should not allow a deffs to use the same name as a previous
defflag/defparam.
2007-01-06 18:52:47 +00:00
jmcneill
3330cd5795 No longer required as we now have a C implementation in dev/iic/pic16lc.c 2007-01-06 18:43:27 +00:00
jmcneill
ded203738f Use the pic16lc@iic driver for setting the system LED, rebooting, and
powering off the machine instead of the assembly code in pic16l.S
2007-01-06 18:42:36 +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
pooka
a67e4ce37f * do mount as a forward operation instead of a callback
* process -o args for mount
2007-01-06 18:25:19 +00:00
pooka
7cc096d8ec * get rid of the mount callback; it's no great surprise to the
server that it needs to mount the file system backend if it wants
  to call mount
* provide some options for getmntopts(), assume that callers will parse
  command line (or fstab) args
* reorganize the puffs_cc interface just a bit, preparing for a bigger
  revamp later
2007-01-06 18:22:09 +00:00
jmcneill
555c5f96e9 Add Xbox Serial EEPROM driver to the sample Xbox config. 2007-01-06 18:05:20 +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
pavel
104e8925ea remove some leftover msgbuf manipulation from pmap.c, as done for the i386
and amd64 versions before. Inspired by PR port-i386/34186 from Wolfgang
Stukenbrock.
2007-01-06 17:48:52 +00:00
pavel
a35a158dde PR port-i386/34186 by Wolfgang Stukenbrock:
mapping of msgbuf during startup may map invalid physical adresses

Apply a similar patch as in the i386 case.
The amd64 version was supplied by Blair Sadewitz, thanks.
2007-01-06 17:03:11 +00:00
jmcneill
4a2776e2e1 Fix __KERNEL_RCSID text (missing $) 2007-01-06 16:57:19 +00:00
pavel
74a63dbe33 correct whitespace in last commit. 2007-01-06 16:22:46 +00:00
christos
467eaaa9c1 Add generic TOD support. From Bucky Katz. 2007-01-06 16:18:18 +00:00
christos
897538853e Fix branch handling in ddb. From Bucky Katz. 2007-01-06 16:14:44 +00:00
christos
acedbdccc7 Update to the latest version. From Bucky Katz. 2007-01-06 16:10:32 +00:00
christos
ee28c46912 Update the gpio code to the latest. From Bucky Katz 2007-01-06 16:08:54 +00:00
kardel
d1d4526d02 Import ntp 4.2.4 2007-01-06 16:04:26 +00:00
pavel
9e8014fe50 PR port-i386/34186 by Wolfgang Stukenbrock:
mapping of msgbuf during startup may map invalid physical adresses

"If the last available physical memory segment on a system is less 16k,
than the startup code that will map the kernel message buffer, will fail
and map physical pages behind the last segment.  This may either only lead
to a message buffer without physical memory behind it, or to an
overlapping message buffer with something else."

Fix by allowing multiple physical memory segments to be used for msgbuf.
Also remove some leftover msgbuf manipulation from pmap.c.

Fix supplied by Wolfgang Stukenbrock in the PR, with some modifications
from me, mainly to use the already existing constant VM_PHYSSEG_MAX as the
static limit of number of msgbuf segments.
2007-01-06 15:29:02 +00:00
wiz
df83b9e26d bzip2-1.0.4 is out. 2007-01-06 15:26:33 +00:00
elad
9b470b7708 Mention potential reasons for EPERM.
Requested by Anon Ymous.
2007-01-06 14:43:27 +00:00
cbiere
0086d50320 Respect the environment variable TMPDIR if set. 2007-01-06 14:29:44 +00:00
wiz
ac6fb6a04c From Sergey Svishchev in PR 34995:
Current termcap entry for wsvt25 is 'micro-minimal', so here's an
updated one.  I've based it on vt220-8.  DECSCNM sequence (dark/light
background) is not emulated by wscons, so visual bell is disabled (vb@);
also, I think that 'xn' quirk is unnecessary.  'rs' sequence should
fix PR/28402.

I've also added kB (back tab), F1 (F11 key) and F2 (F12 key) to xterm
entry.
2007-01-06 14:24:42 +00:00
cbiere
4b96ead963 Pointing before a memory object is not proper C. Use an index instead of
pointer arithmetic.
2007-01-06 14:11:20 +00:00
cbiere
a8d0a33445 - Applied patch by David Holland from PR bin/35354.
- Use EXIT_SUCCESS/EXIT_FAILURE instead of 0/1.
 - Additional check for regular file.
 - Use pread() instead of lseek() + read().
 - Check for partial read to prevent out-of-bounds memory access.
 - Added FIXME to onintr(): This is no proper signal handler albeit might
   not really matter here.
2007-01-06 14:00:36 +00:00
cbiere
2fe9526c5d - Use EXIT_SUCCESS/EXIT_FAILURE instead of 0/1.
- Reject unreasonable command-line arguments.
 - No need to cast sizeof() to u_int for malloc().
 - ttyconv: Simplified and replaced magic '5'.
2007-01-06 13:31:06 +00:00
martin
89d077595a If we have a single byte left over after filling in all mbuf data, we need
to increase the "totlen" count too. From Sungwon Chung.
2007-01-06 13:25:19 +00:00
wiz
e7caa1c8e8 Bump date for previous.
XXX: this needs updating for the sendmail and uucp removals.
2007-01-06 13:03:50 +00:00
dsl
eacd963375 Support for non-512 byte media.
Automatically enable writes to the 'labelsector' if necessary.
Detect and recover from problems with the write-protected 'labelsector'
  stopping writes to nearby sectors when the non-raw disk device is used.
Support the installation of 512-byte pbr boot code (eg fatboot).
Verify that there is enough reserved space in the bpb (if not all zeros) to
avoid overwriting the start of FAT filesystems.
2007-01-06 10:21:24 +00:00
pavel
d98112fd6b more spaces -> tabs. 2007-01-06 08:51:22 +00:00
pavel
0da58c3f26 spaces -> tabs in the new zstty lines. 2007-01-06 08:49:34 +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
christos
ced82e8b4e New files from Bucky Katz 2007-01-06 08:16:26 +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
dyoung
9abbf510f1 Add software fragmentation of 802.11 packets to net80211. Some
wireless NICs need the host's help to fragment packets before the
NIC transmits them.  From Sam Leffler.

Screen-scraped by me from the WWW source browser at perforce.freebsd.org.
2007-01-06 06:02:33 +00:00
dyoung
cb9910cb0d Extract all of the FreeBSD compatibility ioctls into a subroutine,
ieee80211_ioctl_get80211_fbsd(), eliminating a bunch of #ifdef/#endif
clutter.
2007-01-06 05:53:17 +00:00
dyoung
f5e353f96f Add a hint to the compiler that the radiotap header requires 8-byte
alignment.  This

        1 helps GCC make better code for architectures such as ARM
          where it would otherwise do a lot of byte-loads and shifts
          to load a multi-byte word, and

        2 ensures that the compiler will add no padding between a
          radiotap header and a 64-bit or narrower field that
          follows it.
2007-01-06 05:51:15 +00:00
jmcneill
7fe712ebf1 Note Microsoft Xbox support. 2007-01-06 05:03:11 +00:00
ober
a57d36e7f8 Update to include Zaurus Port. 2007-01-06 03:56:13 +00:00
ober
11827a57ef Update to include the new Zaurus port as per new-port checklist. 2007-01-06 03:53:21 +00:00
ober
89c37015f9 Updated to include new Zaurus port as per new-port checklist. 2007-01-06 03:34:26 +00:00
jmcneill
2a4936329d Add some WSDISPLAYIO compat options, an SMBus driver, and the pic16lc
sensor driver to the Microsoft Xbox sample config.
2007-01-06 02:45:42 +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
christos
6acd8da97d Don't limit lines to 8K. 2007-01-06 02:18:24 +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