Commit Graph

213833 Commits

Author SHA1 Message Date
tsutsui
3c2eb5037c use device_xname() (from chs@) 2012-10-13 06:18:44 +00:00
tsutsui
9df3c44752 struct device * -> device_t, use device_xname() (from chs@) 2012-10-13 06:16:18 +00:00
tsutsui
21f100dd36 struct device * -> device_t, struct cfdata * -> cfdata_t
use device_xname()  (from chs@)
2012-10-13 06:12:23 +00:00
tsutsui
71d85cc144 struct device * -> device_t, struct cfdata * -> cfdata_t (from chs@) 2012-10-13 06:08:30 +00:00
riz
082083056d Bump SYMTAB_SPACE 480000->490000 2012-10-13 06:08:11 +00:00
riz
124a123b4e Bump SYMTAB_SPACE 475000->485000. 2012-10-13 06:06:49 +00:00
jakllsch
d5c3f2d0b1 Add the next three /dev/pci nodes.
Marvell Orion already exposes two.
2012-10-13 01:13:59 +00:00
christos
7417d4b468 Add trailing NULL's to the varargs functions as required. (John Spencer) 2012-10-12 23:35:02 +00:00
matt
7a748751ca Add some defensive code to deal with "issues" of this interface.
Seems it can't do DMA updates of the rxsts for mbufs with addresses
>= 256MB.  It can't also seem to properly read from the descriptor rings
if they are < 256MB.  And I have no idea why either should matter.
2012-10-12 23:25:15 +00:00
rmind
2440dfcd19 Update comment on vnode life-cycle a little. 2012-10-12 21:10:55 +00:00
tsutsui
1c33f831ff Now we get working netboot loader, so enable options NFS_BOOT_DHCP by default. 2012-10-12 20:27:39 +00:00
tsutsui
a1b018dcb1 Mention x68k new netboot. 2012-10-12 20:21:43 +00:00
tsutsui
598cc12300 Add new /usr/mdec/netboot. 2012-10-12 20:16:30 +00:00
tsutsui
548d4f2da8 First cut at x68k network bootloader via NE2000 on Neptune-X and Nereid.
Written by isaki@ back in 2003 based on x86's NE2000 netboot, and
misc debug and improvements by tsutsui@ and Y.Sugahara.

Tested on XM6i (emulating Nereid Ethernet) and X68030 + Neptune-X by me,
also on X68030 + Nereid and X68000 PRO-II + Xellent30 + Nereid by isaki@.

Note:
- X680x0 IPLROM doesn't support bootstrap from Neptune-X or Nereid,
  so this network bootloader needs to be loaded from floppy or harddisk.
- Currently netboot support is not merged into the secondary Multi-boot
  (/usr/mdec/boot) due to size restriction.
- Primary loaders assumes that the secondary bootloader name is /boot,
  so /usr/mdec/netboot needs to be installed as /boot into the target
  bootstrap device.
2012-10-12 20:15:52 +00:00
christos
e7a665c4ec fix pre-5 stat system call structure which should have used the pre-64-time_t
timestamps!
2012-10-12 19:45:47 +00:00
msaitoh
237b58e244 Remove OLD manunal to install correct manual. 2012-10-12 18:41:59 +00:00
tsutsui
cda8ce33ae Bump version to denote check_getchar() bug fix. 2012-10-12 18:06:27 +00:00
tsutsui
84c4406576 Fix a bug in check_getchar() (called from awaitkey_1sec()).
It didn't clear input key data when non ASCII keys (CTRL, OPT.1 etc)
were pressed so it couldn't detect further key inputs and
"any other key for boot menu" interrupt during boot didn't work
in that case.

The problem was tracked by Y.Sugahara,
and tested on X68030 and XM6i by me.
2012-10-12 18:01:53 +00:00
matt
5bb4e8d617 Add a way to force PCI to negotiate gen1 (setting flags 1 in the config file). 2012-10-12 17:18:02 +00:00
tsutsui
d68ae996dd Tweak SUBDIR build order and add comments about each dir. 2012-10-12 17:06:48 +00:00
dholland
24462a68ab fix previous, thanks asau@ 2012-10-12 15:41:10 +00:00
cegger
51eec0573c Add support for various things:
- hddtemp sensor
- ambient light sensor on/off (via sysctl)
- display info
- docking station info
2012-10-12 13:02:28 +00:00
msaitoh
7e88eb9b3c Explicitly cast to uint64_t instead of using PRIxPADDR because
sizeof(paddr_t) != sizeof(bus_addr_t) on some architecture.

See:
  http://mail-index.netbsd.org/source-changes-d/2012/10/09/msg005353.html
2012-10-12 11:24:44 +00:00
dholland
317c009481 Don't use ++ to set flags to true. Now passes -Wstrict-overflow. 2012-10-12 10:44:20 +00:00
dholland
6dd1299b8b Pass -Wstrict-overflow. 2012-10-12 10:38:53 +00:00
msaitoh
cfbd580d96 - The MVGBE_RX_MAX_FRAME_LEN_ERROR bit is used to check whether a packet
is fragmented or not, so define new MVGBE_RX_IP_FRAGMENT with the same
  value and use it.
- Remove the checking whether a packet length is lower than 72 octet.
  This check is not used in Linux and FreeBSD. Tested with me (for Kirkwood)
  and Kiyohara (for DiscoveryII).
2012-10-12 10:38:06 +00:00
riastradh
a807072402 Disentangle do_sys_rename.
Elide the fs-wide rename lock for single-directory renames.  This
required changing the order of lookups, so that we know what the
directories are before we lock the nodes.

Clean up error branches, explain why various nonsense happens and
what it does and doesn't do, and note some of what needs to change.
2012-10-12 02:37:20 +00:00
christos
202952fb98 PR/47058: Antti Kantee: If the ipv6 flow code modifies the mbuf, pass the
change up to the caller.
2012-10-11 20:05:50 +00:00
tsutsui
4d3cc40dbf Note recent BCM57762 support to bge(4). 2012-10-11 18:05:40 +00:00
ginsbach
3c784af1ec A few natty acronyms. 2012-10-11 18:00:25 +00:00
christos
f6e747aed2 make libhack's syslog.c produce exactly the same symbols as libc's syslog.c,
so that in the future we can keep them synced. Avoid strong_alias since it
does not play well with symbol renaming.
2012-10-11 17:11:16 +00:00
christos
a9bb3b0c76 take care of the signal safe syslog calls which are not exposed. 2012-10-11 17:09:55 +00:00
apb
df89e191b0 Change "=r" to "=qQ" in a register constraint in an asm statement
for a register that is used with the "xchgb" instruction in the
definition of __cpu_simple_lock_try().  This fixes PR 45673, or at
least works around the gcc bug that might be behind PR 45673.

The output from "objdump -d" before and after this change is
identical, for the amd64 GENERIC kernel, the i386 GENERIC kernel,
and the i386 MONOLITHIC kernel.
2012-10-11 11:12:21 +00:00
pooka
ccdd96e551 Pass up all multicast addresses, not just broadcast. Among other
things, makes IPv6 work over this interface.
2012-10-11 10:50:45 +00:00
skrll
f037af8930 Complete the device_t/softc split I attempted previously.
From chuq.
2012-10-11 08:53:27 +00:00
skrll
6d2e4674bb Remove files not used since Sep 2006 2012-10-11 08:47:45 +00:00
njoly
172b16130f No need to include files more than once. 2012-10-11 08:01:23 +00:00
christos
156eeee6c3 add more locking (when we read and write fields) 2012-10-10 23:53:43 +00:00
christos
fea19ff7ed Add compat functions for syslog. 2012-10-10 22:52:26 +00:00
christos
b20a15bc10 PR/47055: David Holland: Add hostname to syslog_data, version number, rename
fields consistently, and version library calls affected.
2012-10-10 22:51:55 +00:00
christos
96cec820de compat hook. 2012-10-10 22:51:12 +00:00
christos
6a113fa20a PR/47055: David Holland: Remove static hostname and store the hostname in
syslog_data. Initialize hostname before it is used. While here, add a version
to syslog_data.
2012-10-10 22:50:51 +00:00
skrll
5c95220e86 Second part of PR/46998. The following is taken from the PR with a slight
edit from me.

The TX buffer size is not a function of the SEEQ chip, it is an arbitrary
driver threshold, so I've renamed the define accordingly and added a new
one to specify how many buffers are used (in my port I allow multiple
packets to be in flight at once, so have used #ifndef, such that the
makefile can override).

Comment corrected, and make use of the above defines.

Missing delay(1) added, otherwise the 20,000 timeout loop is dependent
on the speed of your processor. Matches ea_stoptx logic now.

The FIFO empty check does nothing if the previous mode was 'read', but is
required before changing the BUFCODE (per 80C04 datasheet page 19,
note [2]). Then the mode is set to write, so a second FIFO empty check is
needed incase the previous mode was read.

Treat m0 as a pointer not an integer.

Remove double write of the NULL packet header. Either do
memset/ea_writebuf or two writes to SEEQ_BUFWIN, but not both.

The calculation of nextpacket (for hdr[]) assumes bufstart = 0, and puts
the packet header pointing in the wrong place when it isn't.

The setting of CFG2_OUTPUT is done in ea_init(), so doing it in ea_rxinit
is duplicated code.
2012-10-10 22:40:33 +00:00
skrll
0fe66f4512 Split softc/device_t
Use device_xname

From chuq
2012-10-10 22:17:44 +00:00
skrll
9468ba7379 Rename eatxpacket to ea_txpacket for consistency.
First part of PR/46998
2012-10-10 22:11:31 +00:00
skrll
bb9f3ca94f Use device_xname.
From chuq.
2012-10-10 22:00:22 +00:00
skrll
7078f95238 Fix #if 0'ed code.
From chuq
2012-10-10 21:54:13 +00:00
skrll
f390c66ef3 Update comments to reflect the real function prototypes.
From chuq.
2012-10-10 21:53:09 +00:00
njoly
0c8679cd5e Replace .sp with .Pp macro. 2012-10-10 18:20:23 +00:00
njoly
fe7132057a Remove empty BUGS section. 2012-10-10 18:14:14 +00:00