| Commit message (Collapse) | Author | Age | Files | Lines |
|
|
|
|
|
|
| |
Several udp and raw apps IPv6 support.
Reviewed by: freebsd-arch, cvs-committers
Obtained from: KAME project
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
USB ethernet chip. Adapters that use this chip include the LinkSys
USB100TX. There are a few others, but I'm not certain of their
availability in the U.S. I used an ADMtek eval board for development.
Note that while the ADMtek chip is a 100Mbps device, you can't really
get 100Mbps speeds over USB. Regardless, this driver uses miibus to
allow speed and duplex mode selection as well as autonegotiation.
Building and kldloading the driver as a module is also supported.
Note that in order to make this driver work, I had to make what some
may consider an ugly hack to sys/dev/usb/usbdi.c. The usbd_transfer()
function will use tsleep() for synchronous transfers that don't complete
right away. This is a problem since there are times when we need to
do sync transfers from an interrupt context (i.e. when reading registers
from the MAC via the control endpoint), where tsleep() us a no-no.
My hack allows the driver to have the code poll for transfer completion
subject to the xfer->timeout timeout rather that calling tsleep().
This hack is controlled by a quirk entry and is only enabled for the
ADMtek device.
Now, I'm sure there are a few of you out there ready to jump on me
and suggest some other approach that doesn't involve a busy wait. The
only solution that might work is to handle the interrupts in a kernel
thread, where you may have something resembling a process context that
makes it okay to tsleep(). This is lovely, except we don't have any
mechanism like that now, and I'm not about to implement such a thing
myself since it's beyond the scope of driver development. (Translation:
I'll be damned if I know how to do it.) If FreeBSD ever aquires such
a mechanism, I'll be glad to revisit the driver to take advantage of
it. In the meantime, I settled for what I perceived to be the solution
that involved the least amount of code changes. In general, the hit
is pretty light.
Also note that my only USB test box has a UHCI controller: I haven't
I don't have a machine with an OHCI controller available.
Highlights:
- Updated usb_quirks.* to add UQ_NO_TSLEEP quirk for ADMtek part.
- Updated usbdevs and regenerated generated files
- Updated HARDWARE.TXT and RELNOTES.TXT files
- Updated sysinstall/device.c and userconfig.c
- Updated kernel configs -- device aue0 is commented out by default
- Updated /sys/conf/files
- Added new kld module directory
|
|
|
|
|
|
|
|
|
|
|
|
| |
devices.
o Return ENXIO from sn_isa_probe
o Fix SN_DEBUG printf
o Use IFQ_MAXLEN rather than 8
I'll fix the isa probe when I get access to a real isa attachment
device to test against here in a few days.
Overly agressive snagging behavior noticed by: phk
|
|
|
|
|
|
| |
Now you can build a kernel which support IPsec message authentication
but don't support message encryption, by defining IPSEC in your kernel
config file and not defining IPSEC_ESP.
|
|
|
|
|
| |
PR: 15696
Submitted by: Takashi Okumura <taka@cs.pitt.edu>
|
|
|
|
| |
Fixed long lines.
|
| |
|
|
|
|
|
| |
because PC-98 doesn't have RTC and RTC related code is included by
`#ifndef PC98' and `#endif'.
|
| |
|
|
|
|
|
|
|
|
|
|
| |
rev.1.168 should have been committed concurrently:
Fixed some style bugs (always use precisely 1 space after `:' in
dependency specifications).
Removed bogus dependency of ${FULLKERNEL} on ${BEFORE_DEPEND}.
Reminded by: peter
|
|
|
|
|
|
|
|
|
| |
Changed the type used to represent the user stack pointer from `long *'
to `register_t *'. This fixes bugs like misplacement of argc and argv
on the user stack on i386's with 64-bit longs. We still use longs to
represent "words" like argc and argv, and assume that they are on the
stack (and that there is stack). The suword() and fuword() families
should also use register_t.
|
|
|
|
|
|
|
|
| |
to `register_t *'. This fixes bugs like misplacement of argc and argv
on the user stack on i386's with 64-bit longs. We still use longs to
represent "words" like argc and argv, and assume that they are on the
stack (and that there is stack). The suword() and fuword() families
should also use register_t.
|
|
|
|
|
|
| |
register_t, so pointers to it must be passed around as `register_t *',
not as `int *'. The type mismatches were non-benign on alphas, but
the broken code is normally only configured by LINT.
|
|
|
|
|
|
| |
at runtime as it has a nasty habit of crashing on the Alpha :-(.
This is being done this way so we have a common starting point for
debugging.
|
| |
|
|
|
|
|
| |
PR: 15711
Submitted by: Wilko Bulte <wilko@yedi.iaf.nl>
|
|
|
|
| |
any more.
|
|
|
|
| |
kernel.
|
|
|
|
|
|
|
| |
actually a bug this time.
Submitted by: bde
Reviewed by: bde
|
|
|
|
| |
Obtained from: Dan J Fraser <dfraser@capybara.org> (for NetBSD)
|
|
|
|
|
| |
Submitted by: T.Yamaoka <taka@windows.squares.net>
Pressed to review by: nyan
|
|
|
|
|
|
| |
Fixed some style bugs (always use precisely 1 space after `:' in
dependency specifications).
Removed bogus dependency of ${FULLKERNEL} on ${BEFORE_DEPEND}.
|
|
|
|
|
|
| |
is not configured. Including <isa/isavar.h> when it is not used is
harmful as well as bogus, since it includes "isa_if.h" which is not
generated when isa is not configured.
|
| |
|
|
|
|
|
|
|
| |
Rumoved unused compatibility cruft for dup(). Using it today would just
break dup() on fd's >= 64.
Fixed some style bugs.
|
|
|
|
|
|
|
| |
fixee incoherency of pipe timestamps relative to file timestamps in
the usual case where getnanotime() is not used for the latter. (File
and pipe timestamps are still incoherent relative to real time unless
the vfs_timestamp_precision sysctl is set to 2 or 3).
|
|
|
|
|
|
| |
Some interface botches went away, leaving the macros unused outside of
the implementation of interrupt masking, and it was silly for the
implementation to use the macros in only one place each.
|
|
|
|
|
|
|
|
| |
previous pair of commits.
Spell the "securelevel > 0" check consistently.
Use the proc arg instead of curproc in mmopen() and mmclose().
|
|
|
|
| |
Submitted by: Bryan Liesner <bleez@netaxs.com>
|
|
|
|
| |
if_ed_pci.o.
|
|
|
|
|
|
| |
Submitted by: Isizu Takaaki <isizu-t01@aso-group.co.jp>
chi@bd.mbn.or.jp (Chiharu Shibata)
(w/ minor change by kato)
|
|
|
|
|
|
|
|
|
| |
memory >= 64MB.
- Don't perform destructive memory inspection for 15 - 16MB system
area.
Submitted by: NOKUBI Hirotaka <hnokubi@yyy.or.jp>
chi@bd.mbn.or.jp (Chiharu Shibata)
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
apm_default_resume() to sometimes set a very wrong time.
(1) Accesses to the RTC index and data registers were not atomic enough.
Interrupts were not masked. This was only good enough until an
interrupt handler (rtcintr()) started accessing the RTC in FreeBSD-2.0.
(2) Access to the block of time registers in inittodr() was not atomic
enough. inittodr() has 244us to read the time registers. Interrupts
were not masked. This was only good enough until something (apm)
started calling inittodr() after boot time in FreeBSD-2.0.
The fix for (2) also makes the timecounter update more atomic, although
this is currently unimportant due to the low resolution of the RTC.
Problem reported by: mckay
|
| |
|
|
|
|
| |
alphas panic.
|
|
|
|
|
| |
device_printf() etc. to print something intelligible.
* Allow device_set_devclass(dev, 0) for clearing the devclass.
|
|
|
|
|
| |
Fixed casts of non-`void *' pointers to uintptr_t. Fixed related
style bugs. This file uses perfectly non-KNF formatting for casts.
|
|
|
|
| |
in rev.1.4.
|
| |
|
| |
|
| |
|
|
|
|
|
|
| |
right way around.
Submitted by: "Chris D. Faulhaber" <jedgar@fxp.org>
|
|
|
|
| |
Assembler symbols are now made using genassym(1).
|
| |
|
| |
|
|
|
|
|
|
|
| |
o Define ASSYM(sym, v) as the primary macro to use,
o Define ASSYM_SELF and ASSYM_OFFSET in terms of ASSYM,
Psychological manipulation by: bde <grin>
|
|
|
|
|
|
|
|
|
|
| |
frames would be handled incorrectly due to bad usage of m_pullup() in
the case where the frame wraps from the end of the receive buffer back
the beginning.
Also, when manually extending small packets to pad them to the minimum
frame length during transmission, zero out the pad area to make some
really paranoid people happy.
|
| |
|
|
|
|
| |
Removed -mno-486 from CFLAGS since it is no longer supported by gcc.
|
| |
|