Commit Graph

166269 Commits

Author SHA1 Message Date
ichiro
a7889b7caa enable 'uhmodem' 2008-01-21 22:12:00 +00:00
dyoung
fbc39b6d24 Briefly describe elanpex(4) and elanpar(4). Update AUTHORS section. 2008-01-21 22:00:37 +00:00
dyoung
181cb90ac3 Remove elanopt(4) cross-references. 2008-01-21 21:51:57 +00:00
xtraeme
74470d7e13 Fix style in all the previous entries (hi garbled):
- Entries should end with a dot.
- Entries should start with a capital letter.
- Entries should not have extra whitespaces.

PLEASE FOLLOW THE STYLE IN FUTURE COMMITS TO THAT FILE.
2008-01-21 21:32:41 +00:00
dyoung
099d1a6a37 #include <stdbool.h> for bool, instead of typedeffing our own. 2008-01-21 20:47:38 +00:00
dyoung
1ebd488e32 #include <stdbool.h> for bool. 2008-01-21 20:46:58 +00:00
dyoung
5448ecad57 #include <stdbool.h> for 'bool', so that this kernel groveller will
hopefully compile again.
2008-01-21 20:34:13 +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
garbled
5f31e21d22 Add all the changes from the ppcoea-renovation branch, and a few more
that have transpired since then.
2008-01-21 18:16:12 +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
christos
0f85ac800d Fix segmentation fault with printf("%*"); from Jukka Salmi 2008-01-21 17:18:06 +00:00
xtraeme
80947307d3 Fix uhmodem(4) entry: the entries must be started with a capital letter. 2008-01-21 14:54:13 +00:00
ichiro
7c8ed48417 add uhmodem(4) for Huawei E220 wireless modem 2008-01-21 13:42:04 +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
lukem
69b443d18c Turn off the alarmtimer before resetting the SIGALRM handler back to SIG_DFL.
Fix from dieter roelants <dieter.NetBSD@pandora.be>
Should fix PR 35630.
2008-01-21 10:31:28 +00:00
yamt
1fafe1d5e9 yamt-lazymbuf-base9 2008-01-21 10:06:08 +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
934ea5e80a Install elanpar(4), elanpex(4) manual pages. Update distribution
set lists.
2008-01-21 08:13:55 +00:00
dyoung
b6eebee058 Sort. 2008-01-21 08:10:51 +00:00
dyoung
88b0f67d74 Add elanpar(4) and elanpex(4) manual pages. Cross-reference from
elansc(4).  Updates to the Makefile and the distribution set lists
are coming.
2008-01-21 08:07:20 +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
msaitoh
899c734b12 Conform to XCU Section 2.8.2 (Exit Status for Commands) 2008-01-21 06:43:03 +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
rmind
ef582b3c94 Mention implementation processor-sets, affinity, real-time
extensions and import of schedctl(8).
2008-01-21 01:08:02 +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
yamt
6db1337305 add x86/pmap_pv.h 2008-01-20 20:23:21 +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
eb444c6f85 evbarm was the last platform to be converted to timecounter support. 2008-01-20 17:15:00 +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
dsl
76952d779a Describe mbr_com0 and mbr_com0_9600
Include the filenames in the descriptive table entry.
2008-01-20 15:05:15 +00:00
dsl
683572a3a3 Note the existance of mbr_com0 and mbr_com0_9600. 2008-01-20 15:04:09 +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