Commit Graph

84801 Commits

Author SHA1 Message Date
pooka
a1485f3144 make puffs_strategy more robust 2006-11-18 19:33:02 +00:00
tsutsui
18bff81fab Add rgephy at mii for Realtek 8169S. 2006-11-18 18:28:15 +00:00
tsutsui
34a152af6d No need to check ifp->if_capenable on RX checksumming. 2006-11-18 17:39:44 +00:00
dsl
1423b45db9 remove KERNFS it isn;t in any of the other install kernels, and mount_kernfs
isn't in the ramdisk images.
2006-11-18 16:52:57 +00:00
tsutsui
9cdb8836f5 Fix wrong prototype declarations of _spl*() functions.
Pointed out by Havard Eidnes.
XXX: should these decls be in <mips/intr.h> or <mips/locore.h>?

While here, remove "extern" keyword from function declarations.
2006-11-18 16:40:21 +00:00
dyoung
61e2e920d9 Remove __P(). Use LIST_ macros instead of accessing lh_first
directly.
2006-11-18 16:23:15 +00:00
dyoung
6a611f0c78 Cosmetic: use TAILQ_FOREACH(). Remove superfluous parentheses from
return statements.
2006-11-18 16:17:55 +00:00
tsutsui
9f13d14c8a Unwrap some lines (after __unused removal). 2006-11-18 16:03:53 +00:00
tsutsui
b09d8d340a Rename re_pci_probe() -> re_pci_match(). 2006-11-18 15:58:50 +00:00
tsutsui
655bb5e6f1 Remove options SOSEND_NO_LOAN. Now it's handled in mips/pmap.c. 2006-11-18 14:28:55 +00:00
tsutsui
7cb169d2dd Disable sosend_loan() in sys/kern/uipc_socket.c temporarily on CPUs
which have virtual address indexed cache and whose pmaps don't always
allow normal shared mappings even for read only pages.

In future, these pmaps should be rewritten to handle such read only
shared mappings properly like ARM pmap, but currently we just disable
sosend_loan() to avoid unnecessary uncached mappings and cache flushes
on MIPS3 CPUs, or map/unmap thrashing on SH4.

Discussed with thorpej a while ago.
2006-11-18 14:25:39 +00:00
pooka
61a717befb prevent value 0 for mnt_stat.f_iosize, it is sometimes used as a divider 2006-11-18 12:50:59 +00:00
pooka
0eca4b2eaa Require statvfs info from startreq so that we have that info available.
Also, don't pass fsid to userspace and just fill it in the kernel.
2006-11-18 12:39:48 +00:00
tsutsui
d1beedb632 Fix some comments. 2006-11-18 10:37:24 +00:00
tsutsui
b27339f35f Regen from pcidevs rev 1.853:
> Add an ID of Broadcom BCM5752M. From Matt Kolb on tech-kern.
2006-11-18 08:33:05 +00:00
tsutsui
78a69946d1 Add an ID of Broadcom BCM5752M. From Matt Kolb on tech-kern. 2006-11-18 08:32:08 +00:00
pooka
dfa114e254 As a first generation best-effort hack, use NOCACHE to mean "file
size can change without the kernel knowing" and therefore query
the file size before invoking read or write operations.
2006-11-18 08:18:24 +00:00
yamt
9ef6d9f3e5 qc_reap, qc_destroy: simplify. 2006-11-18 07:51:54 +00:00
yamt
c683b6561f vmem_destroy: don't forget to clean up qcache_t. 2006-11-18 07:51:34 +00:00
yamt
23213de881 vmem: share qcache_t if itemsperpage is same. 2006-11-18 07:51:06 +00:00
tsutsui
ea45dc497b Replace magic numbers with macro. 2006-11-18 07:40:13 +00:00
tsutsui
d56fc00c0d - sync HWREV definitions with FreeBSD
- recognize 8169SC/8100E/8101E (untested, but won't hurt working devices)
  XXX: 8100E/8101E don't support 1000M; need some flag to set if_baudrate
2006-11-18 07:22:06 +00:00
tsutsui
e24d6ea3f8 Regen from pcidevs rev 1.852:
> - add Realtek RTL8100 (from FreeBSD)
> - fix entry of RTL8169SC
> - remove vague comment in Realtek entry
2006-11-18 01:01:23 +00:00
tsutsui
917e45ce9f - add Realtek RTL8100 (from FreeBSD)
- fix entry of RTL8169SC
- remove vague comment in Realtek entry
2006-11-18 01:00:18 +00:00
tsutsui
33b09955d2 Use bitmask ops rather than modulo in RE_NEXT_*() macro since
we can assume each number of descriptors and TX queue is a power of two.
2006-11-18 00:21:36 +00:00
tsutsui
60b7324743 Regen from pcidevs rev 1.851:
> Add and note more Realtek Ethernet chips.
2006-11-18 00:01:14 +00:00
tsutsui
e3a0fc1942 Add and note more Realtek Ethernet chips. 2006-11-17 23:57:27 +00:00
tsutsui
654712938e - add some more register definitions from Realtek driver
- sort
2006-11-17 23:41:42 +00:00
tsutsui
fbed9c84db COPTS should have -O2 otherwise we'll get no generic optimization.
XXX: I prefer CPUFLAGS, but there isn't any conclusion yet.
2006-11-17 22:18:22 +00:00
tsutsui
6590e7b074 Prepare and use an inline function which sets 64 bit DMA address into
struct re_desc to avoid unnecessary 64 bit arithmetic on ILP32 ports.
2006-11-17 21:49:49 +00:00
tsutsui
80b92a7179 Use ETHER_HDR_LEN rather than sizeof(struct ether_header).
BTW, should we have the similar ip4csum-tx bug workaround for fxp(4)?
2006-11-17 21:35:24 +00:00
tsutsui
f48e88ab0d Add a workaround for hardware ip4csum-tx bug on re(4) chips.
See discussion on tech-kern and tech-net for details:
http://mail-index.netbsd.org/tech-net/2006/10/21/0000.html
http://mail-index.netbsd.org/tech-net/2006/11/04/0003.html
http://mail-index.netbsd.org/tech-net/2006/11/07/0002.html
http://mail-index.netbsd.org/tech-net/2006/11/12/0000.html
etc.
2006-11-17 21:29:36 +00:00
tsutsui
44e83481b7 Defer _spl0() or _splnone() calls (which enable hardware interrupts)
from cpu_configure(9) to cpu_initclocks(9) on mips ports which use
mips3_clockintr.c:mips3_clockintr() (i.e. CPU INT5 clock) to avoid
hardclock(9) before softclock interrupt is initialized in initclocks().
This should be harmless because initclocks() is a part of configure()
in these days and there is no MI function which expects hardware
interrupts between cpu_configure(9) and cpu_initclocks(9).

Disccussed on tech-kern and port-mips.
2006-11-17 21:01:03 +00:00
pooka
e5e4a4f6bc Introduce uncached operation, makes sense when the file system backend
can be modified from elsewhere than the file system interface
2006-11-17 17:48:02 +00:00
hannken
e29b23b983 Add specificdata support to mount points.
Welcome to NetBSD 4.99.4

Approved by: Jason Thorpe <thorpej@netbsd.org>
2006-11-17 17:05:18 +00:00
macallan
aa4a0d1a02 add RADEONFB_MMAP_BARS 2006-11-17 17:01:47 +00:00
ws
bb49b83c02 Looks like the capability of octal counting is vanishing (hi, yamt). 2006-11-17 12:33:39 +00:00
uwe
20e7821e8a Enforce correct userspace bounds in copy{in,out}str().
From Miod Vallat <miod@openbsd.org>.
2006-11-16 23:12:23 +00:00
uwe
4fb9f81ff9 Sync with sys/endian.h: s/const/__const__/ in __attribute__ 2006-11-16 23:01:16 +00:00
dyoung
33f672908d Correct the length of the TTL argument to setsockopt(IPPROTO_IP,
IP_TTL).
2006-11-16 22:58:00 +00:00
uwe
bd3c9477fb Bring back __unused (sed cannot tell if it's in an argument list or not). 2006-11-16 22:55:25 +00:00
dyoung
8cfa750e0f Use LIST_FOREACH(). 2006-11-16 22:54:14 +00:00
oster
d4240170d8 xen_shm_errintvl is only used in the DEBUG case. Fixes build for non-DEBUG. 2006-11-16 22:38:18 +00:00
dyoung
51a6c2e769 Cosmetic: s/g_proto/sc_proto/.
(Straggler from last commit affecting net/if_gre.c, netinet/ip_gre.c.)
2006-11-16 22:32:38 +00:00
joerg
f39fcf5763 LFS will never set SF_SNAPSHOT and doesn't support ffs_snapgone anyway.
So conditionally the calls to that function on the inclusion of FFS and
allow a LFS-only kernel to link.
2006-11-16 22:29:03 +00:00
dyoung
641edc65f1 Cosmetic: s/g_proto/sc_proto/. Remove superfluous parentheses and
curly braces.
2006-11-16 22:26:35 +00:00
christos
5e16b7787c - don't hardcode 5, 10 define and use MII_ANEGTICKS{,_GIGE}
- instead of != limit, use <= limit (conservative)
2006-11-16 21:24:06 +00:00
christos
5d48d92007 ifdef out an unused function if !FFS_NO_SNAPSHOT 2006-11-16 21:21:34 +00:00
jdolecek
e0f8f596d4 undo previous change - crom_buf->len has been changed to uint32_t
(this is backward ABI compatible) so the check for negative value is
no longer necessary
2006-11-16 16:10:43 +00:00
jdolecek
8c96a4b6ac make the struct fw_crom_buf's len uint32_t, so that it can never be negative
the real fix to
http://archives.neohapsis.com/archives/fulldisclosure/2006-11/0261.html
2006-11-16 15:59:28 +00:00