Commit Graph

92221 Commits

Author SHA1 Message Date
gson b8e6012764 Don't enter an infinite loop in audio_read() when the sc->sc_rustream
buffer is full.  Fixes kern/34659.
2008-01-23 14:14:55 +00:00
joerg 4963c291d7 Fix a logic bug when handling multiple continious misaligned mbufs. 2008-01-23 13:05:42 +00:00
dyoung 993dda8c48 Make this compile again: delete an unused variable from ae_ioctl(). 2008-01-23 05:24:28 +00:00
dyoung 3a08c4a544 Make these compile again by #including <prop/problib.h>. 2008-01-23 05:23:59 +00:00
jmcneill 157e8edd73 Add XBOX specific device drivers and options. 2008-01-23 00:12:03 +00:00
jdc e75a1cd5b7 Set the correct offset when using VLAN's. 2008-01-22 23:19:14 +00:00
dyoung aa385448f5 Functional: return ENTRESET from ifioctl_common(), if SIOCSIFCAP
changed anything.

Cosmetic: shorten staircase.
2008-01-22 22:26:30 +00:00
dyoung 94e4ecb4ba Add missing break statement. 2008-01-22 22:09:59 +00:00
reinoud 6383f534f7 Remove extra '(' that prevented kernel with UVMHIST to be compiled 2008-01-22 21:36:23 +00:00
dyoung 81e0f3dc3d Take two steps toward adding and deleting link-layer addresses.
1 Extract subroutine if_dl_create() from if_alloc_sadl().
  if_dl_create() allocates a link-layer ifaddr.

2 Extract subroutine ifioctl_common() from ifioctl().  ifioctl_common()
  will be the basis for an ifnet "superclass" whose functions
  drivers may inherit.  Very simple drivers may set ifnet->if_ioctl
  = ifioctl_common.  More sophisticated drivers will set ifnet->if_ioctl
  = driver_ioctl.  driver_ioctl() will call ifioctl_common() to
  re-use the common code.
2008-01-22 16:25:15 +00:00
joerg 569d6e3d6c Include sys/simplelock.h for the sake of pm_lock. 2008-01-22 15:25:39 +00:00
joerg a185f9743d Missing assym.h dependency. 2008-01-22 15:24:50 +00:00
joerg c1c99026f3 Fix up my last commit. statintr and a misnamed variable slipped through. 2008-01-22 14:11:02 +00:00
yamt d1dc67ef57 identifycpu_cpuids: fix ids for multicore cpus. 2008-01-22 12:55:24 +00:00
joerg fe9a3139bc Fix LAPIC_LEVEL_MASK and related defines. 2008-01-22 12:42:08 +00:00
joerg 2e737299d6 GC i8254_microtime. 2008-01-22 12:41:38 +00:00
he e96f213c26 Delete a now-unused local variable. 2008-01-22 11:49:54 +00:00
jdc eb6a063cb6 Also count excess or late collisions as output errors in gem_tint().
Count receive errors (as input errors) in gem_rint().
2008-01-22 09:42:06 +00:00
pooka 2310c71b91 Until debugging threaded programs in NetBSD is fixed, supply the
cpp option RUMP_WITHOUT_THREADS as a workaround.  If defined, it
makes rump itself operate single-threaded and prevents kthread_create()
from working.
2008-01-22 09:23:39 +00:00
jmcneill c0e43ab0d6 Add ossaudio support for COMPAT_LINUX32, with help from mrg. With this
change, audio now works on amd64 with native firefox, nspluginwrapper, and
the 32-bit linux flash binaries.
2008-01-22 01:05:05 +00:00
pooka c40d447080 Sprinkle comments about um_lock status on function entry and exit.
No functional change.
2008-01-21 23:36:26 +00:00
ichiro a7889b7caa enable 'uhmodem' 2008-01-21 22:12:00 +00:00
dyoung af289dd714 struct route is part of the kernel ABI (!!!), so move it back
outside of #ifdef _KERNEL.  #include stdbool.h if !_KERNEL.
2008-01-21 20:25:33 +00:00
dyoung 58eb3d1bbb Move struct route inside of #ifdef _KERNEL to protect userland from
it.
2008-01-21 20:04:37 +00:00
joerg b120166d53 in_cksum.S needs assym.h. 2008-01-21 19:39:28 +00:00
pooka 65a36d9ef8 In case cv_timedwait() gets ticks == 0, make sure we sleep eternally
(or at least until wakeup) instead of immediately waking up.

In other words, fix this after it broke when another piece of the
code was fixed.  Ain't programming fun?
2008-01-21 17:56:48 +00:00
ichiro 2e9fa9fff0 make compile 2008-01-21 12:16:31 +00:00
ichiro c6061e7174 change umass quirks logic in USB_MATCH()
PR/37687 from Yojiro UO
2008-01-21 12:11:21 +00:00
ichiro 817e003a02 add full support device driver for Huawei E220 wireless modem
PR/37692 from Yojiro UO
---
uhmodem: device driver for huawei 3G wireless modem

* what it is?

A device driver for huawei 3G wireless modem, E220 and its valiations.

The devices are very simuler to ubsa device, but they need special care
to use as modem device.
This patch introduce "uhmodem (USB Huawei modem)" for the devices.
A uhmodem device has two com devices and one USB mass strage device.
The driver enable to use all of them.

* dmesg:
uhmodem0 at uhub0 port 1 configuration 1 interface 0
uhmodem0: HUAWEI Technologies HUAWEI Mobile, rev 1.10/0.00, addr 2
uhmodem0: mass storage only mode, reattach to enable modem
uhmodem0: at uhub0 port 1 (addr 2) disconnected
uhmodem0 detached
uhmodem0 at uhub0 port 1 configuration 1 interface 0
uhmodem0: HUAWEI Technologies HUAWEI Mobile, rev 1.10/0.00, addr 2
ucom0 at uhmodem0 portno 0: modem
ucom1 at uhmodem0 portno 1: monitor
umass0 at uhub0 port 1 configuration 1 interface 2
umass0: HUAWEI Technologies HUAWEI Mobile, rev 1.10/0.00, addr 2
umass0: using SCSI over Bulk-Only
scsibus0 at umass0: 2 targets, 1 lun per target
cd0 at scsibus0 target 0 lun 0: <HUAWEI, Mass Storage, 2.31> cdrom removable
2008-01-21 11:36:46 +00:00
dyoung 654775cc67 Remove an unnecessary check that yields a spurious EINVAL during
initialization.
2008-01-21 11:32:12 +00:00
dyoung 14e6ca4ee4 In rtflushall(), do not clear a route cache by removing its rtentry
reference, but mark the cache 'invalid'.  Let the next user of the
route cache check to whether or not the cache is valid, and update
the rtentry reference if necessary.  In this way, avoid hairy
splnet()/splx() protection of route caches, which I never did trust.
2008-01-21 09:11:24 +00:00
skrll b68a5cfc55 Slightly better version of dumpsys from ad via simonb. 2008-01-21 08:22:42 +00:00
dyoung 42bde7e9fa Attach two new devices to the AMD Elan SC520 System Controller,
elansc(4).

elanpex(4) is for PCI exception reporting.  I've already found some
kernel bugs by reading the exceptions reported.  Beware that it
will spam the console a lot while the kernel and pcictl(8) probe
non-existing addresses in PCI configuration space.

elanpar(4) protects the kernel text from writes by the CPU and by
PCI bus masters.  As you might guess, this is not compatible with
setting breakpoints using a debugger; detach the device using
'drvctl -d elanpar0' before you try to set breakpoints.  In the
future, I hope to extend elanpar(4) to provide general-purpose RAM
write-protection.
2008-01-21 08:04:51 +00:00
dyoung 9cfd7f5c79 Move the nmi_dispatch() call with respect to the #ifdef garbage so
that Xen kernels will compile again.
2008-01-21 07:38:22 +00:00
pooka fdedd21efc Implement dummy bmap which just does 1:1 translation. 2008-01-21 03:40:59 +00:00
dyoung 97fd3f919c Add primitive routines to establish NMI handlers on i386.
TBD: synchronize (dis)establishment of handlers.
2008-01-21 02:56:13 +00:00
chris 2c030c103e Zero out the whole of the structure, not just the first 4 bytes. IE use
sizeof(*bconfig) not sizeof(bconfig)

Now a small kernel will boot up on my RISC-PC, an install kernel won't
though, it hangs at the switch from RISC-OS to NetBSD.
2008-01-21 00:41:13 +00:00
rmind 0bc5ae744b Move the cpuid_t type-defintion out of the _NETBSD_SOURCE condition. Should
fix the compilation of various applications.  Discussed with <martin>.
2008-01-21 00:27:24 +00:00
yamt 569f933f28 pmap_enter:
- when overwriting an existing mapping for the same page,
  inherit R/M bits so that they won't be lost.
- xen: don't leave ptp on error.
2008-01-20 22:41:55 +00:00
yamt f093a1dc3b pmap_write_protect: remove an unnecessary volatile. 2008-01-20 21:56:11 +00:00
dyoung f21e6a3c1a Do not reserve ISA bus space for npx@isa unless we hook IRQ 13,
which we ought to never do.  If we have not hooked IRQ 13, we do
not need any resources in npx_softc to handle numeric coprocessor
exceptions, so let npx@isa detach.
2008-01-20 21:49:57 +00:00
bouyer 3d0b4af882 Make first argument of Xen's pmap_pte_cas() volatile, fix a warning
building pmap.c.
2008-01-20 18:41:47 +00:00
joerg 3615cf7715 Now that __HAVE_TIMECOUNTER and __HAVE_GENERIC_TODR are invariants,
remove the conditionals and the code associated with the undef case.
2008-01-20 18:09:03 +00:00
joerg 4e56cdd20a Convert evbarm to timecounter. Only one of the systems was tested, the
rest of the patch is compile-time tested only.
2008-01-20 16:28:22 +00:00
jdc 19c14b9042 Fix Apple gigabit gem interfaces by restoring some of the code from r1.67,
with some minor alterations to make Sun fibre cards work too.
Tested by aymeric@ and macallan@.
Fixes PR kern/37809.
2008-01-20 15:12:33 +00:00
dogcow 2b441c15a9 kill unused variable 2008-01-20 14:18:05 +00:00
he 78d5b85f20 Remove two now-unused local variables. 2008-01-20 14:14:11 +00:00
dogcow 46537ac345 kill unused variables 2008-01-20 13:44:19 +00:00
yamt ecf338e548 - rewrite P->V tracking.
- use a hash rather than SPLAY trees.
	  SPLAY tree is a wrong algorithm to use here.
	  will be revisited if it slows down anything other than
	  micro-benchmarks.
	- optimize the single mapping case (it's a common case) by
	  embedding an entry into mdpage.
	- don't keep a pmap pointer as it can be obtained from ptp.
	  (discussed on port-i386 some years ago.)
	  ideally, a single paddr_t should be enough to describe a pte.
	  but it needs some more thoughts as it can increase computational
	  costs.
- pmap_enter: simplify and fix races with pmap_sync_pv.
- don't bother to lock pm_obj[i] where i > 0, unless DIAGNOSTIC.
- kill mp_link to save space.
- add many KASSERTs.
2008-01-20 13:43:37 +00:00
yamt 5f9a41e037 pmap_write_protect: fix an assumption in the previous.
a pte can have PG_M even if it currently doesn't have PG_RW.
2008-01-20 13:16:57 +00:00