Commit Graph

112693 Commits

Author SHA1 Message Date
hannken
3e29235de5 Remove a needless vnode lock/unlock dance. This is a leftover from the
removal of VOP_LEASE().

Function union_removed_upper() always works on unlocked upper vnodes so
remove the test-and-unlock and add an assertion.
2011-11-14 18:38:13 +00:00
hannken
d84a65dd80 VOP_OPEN() needs a locked vnode. All these copy-and-pasted xxxfs_mount()
implementations need more review.
2011-11-14 18:35:12 +00:00
hannken
14767c9d30 Bring back sys/disklabel.h for DISKUNIT and DISKPART. 2011-11-14 16:04:29 +00:00
jmcneill
ab7c274655 add machdep.dmi.bios-date 2011-11-14 11:29:48 +00:00
mbalmer
e6dceed514 Initialize ga.ga_dvname in gpio_search to prevent a stack fault in config_match 2011-11-14 07:45:54 +00:00
jmcneill
bd2d899c84 add a machdep.dmi sysctl tree with the following read-only keys:
system-vendor, system-product, system-version, system-serial, system-uuid
 bios-vendor, bios-version
 board-vendor, board-product, board-version, board-serial
the *-serial and *-uuid keys are marked with CTLFLAG_PRIVATE

a few of the pmf platform key names changed so update callers to match
2011-11-14 02:44:59 +00:00
sekiya
42f3df52bc Increase SYMTAB_SPACE. 2011-11-14 00:12:37 +00:00
christos
a96ee3ab95 use getdiskinfo() 2011-11-13 23:10:34 +00:00
christos
1058c21f81 use getdisksize() 2011-11-13 23:08:47 +00:00
christos
3cc8e640ed remove unused call to DIOCGPART that was only used for debugging.
malloc M_WAITOK, does not fail.
2011-11-13 23:07:11 +00:00
christos
05bbfb83a3 use getdisksize() 2011-11-13 23:03:55 +00:00
christos
9fc82cfc97 use getdisksize() instead of homebrew() 2011-11-13 23:03:24 +00:00
christos
e839ec30fc use getdisksize 2011-11-13 23:02:46 +00:00
christos
96b6da2490 use getdiskinfo() 2011-11-13 23:02:06 +00:00
christos
d103aa656f Add getdiskinfo() to centralize the DIOCGPART mess in one place. 2011-11-13 22:54:05 +00:00
christos
38d2e81837 s/info/name 2011-11-13 22:19:09 +00:00
christos
fd091bf3da Sync the disklabel fstype info with the wedge partition info.
From now on these will stay synchronized because if they don't
getfstypeinfo will not compile.
2011-11-13 22:07:00 +00:00
christos
17c5859747 add getdiskinfo a companion utility to getdisksize. 2011-11-13 22:05:58 +00:00
christos
3aa8e3d303 use getdisksize, M_ZERO, and malloc M_WAITOK doesn't fai. 2011-11-13 18:29:08 +00:00
dholland
0b69cddad2 Avoid panic on error path, from PR 45607. The error path is exercised
because this is using DIOCGPART to get the volume size, which doesn't
work on wedges. It should be calling getdisksize() instead.
2011-11-13 17:22:51 +00:00
mbalmer
afd38e42d9 Remove an unused constant. 2011-11-13 16:56:15 +00:00
phx
eeb50b3333 Add DS-106j. 2011-11-13 16:22:18 +00:00
tsutsui
2556fadeae Read-modify-write instead of read-modify-read. (not sure if this was fatal) 2011-11-13 15:57:57 +00:00
mbalmer
092935d865 Remove an unused variable. 2011-11-13 14:02:01 +00:00
mbalmer
a2091c8232 Remove software pulsing in gpio(4), this functionality is now provided
by the gpiopwm(4) driver.
2011-11-13 13:20:02 +00:00
mbalmer
0826f67b74 On detach, set the pin to low state. 2011-11-13 13:16:33 +00:00
mbalmer
c668574f04 Add gpiopwm(4). 2011-11-13 12:47:54 +00:00
mbalmer
2b7e7be22d Add commented out entry for gpiopwm(4). 2011-11-13 12:46:40 +00:00
mbalmer
d4bc0f70c1 gpiopwm(4) is a driver to pulse GPIO pins in software. This obsoletes
the software pulsing facilities in gpio(4) (and gpioctl(8)) which will
later be removed.
2011-11-13 12:33:00 +00:00
mbalmer
1399980869 Enable nsclpcsio and gpio devices. 2011-11-13 09:41:46 +00:00
mbalmer
4d3e3d4418 Pickup NGPIO. 2011-11-13 09:17:56 +00:00
mrg
c09a267949 set panicstr to "reboot forced via kernel debugger" when rebooting
from ddb, similar to how sync from ddb works.

this avoids various asserts and other issues during ddb reboot.
2011-11-13 03:21:51 +00:00
christos
cff1dac372 if you are going to dereference a variable, check the variable itself, not
it cousin.
2011-11-13 02:10:40 +00:00
phx
1c9e391710 Make the chipfix() functions return void instead of int, as the return
value is useless. Suggested by nisimura.
2011-11-13 00:06:54 +00:00
phx
7feb223452 Add Iomega support (init, reboot, poweroff).
Make new sysctl-nodes for Iomega fan control in machdep.satmgr.
2011-11-12 23:57:55 +00:00
phx
096b4f18de Improved Iomega microcontroller support. Bumped version to 1.8. 2011-11-12 23:52:54 +00:00
phx
55277ecd82 Add support for IT821x IDE. 2011-11-12 16:56:12 +00:00
jakllsch
dacb12f218 Make a comment consistent with the code. 2011-11-12 14:51:41 +00:00
tsutsui
460c94cc06 Finally complete LUNA-II support, after almost 12 years since
initial import of NetBSD/luna68k.

Note a working LUNA-II machine was found and provided by OMRON guys
after LUNA demonstration at Open Source Conference 2011 Kansai @ Kyoto:
http://mail-index.NetBSD.org/source-changes/2011/07/16/msg024675.html
and this resurrected LUNA-II which runs NetBSD/luna68k -current with Xserver
was also demonstrated on the NetBSD booth at Kansai Open Source 2011:
http://www.NetBSD.org/gallery/events.html#kansai-os-jp-2011

It's really pleasure to meet many OMRON LUNA developers and LUNA users
at the NetBSD booth.  Thank you everyone!


Changes details:

luna68k/luna68k/locore.s
 - don't use 68030 specific pflusha instruction in 68040 initialization path
 - use TBIA() to invalidate TLB instead of 68030's pflusha
   after MMU is turned on (as hp300 does)
   (these two bugs are fatal at early bootstrap)
 - pull loadustp() fixes from hp300/locore.s rev 1.82
   (more flush ops are required in it otherwise causes random coredumps)
 - specify correct %tt1 mask value
   (the mask value means actually bit mask, not transparent range)

luna68k/luna68k/machdep.c
 - use proper delay_divisor for 68040 25MHz LUNA-II

luna68k/luna68k/mainbus.c
 - prepare and use per-model mainbus device lists for mainbus_attach_args

luna68k/conf/GENERIC
luna68k/conf/INSTALL
 - enable options M68040 and FPSP
 - enable secondary spc(4) on LUNA-II

luna68k/conf/Makefile.luna68k
 - include arch/m68k/fpsp/Makefile.inc for FPSP

luna68k/dev/lcd.c
 - promote LUNA-II model on LCD

XXX: old and slow SCSI-1 drives like Hitachi DK312 seems to have
XXX: some problem with spc(4) driver, even on the original LUNA
2011-11-12 13:44:26 +00:00
sekiya
6b83ab5379 Regen. 2011-11-12 11:11:07 +00:00
sekiya
51e7e579b6 Add support for makphy 0x0029 variation found on most recent Globalscale Dreamplug. 2011-11-12 11:10:49 +00:00
nonaka
98b5013301 SL-C700 has PXA250 step B instead of PXA250 step A. 2011-11-12 04:39:19 +00:00
jakllsch
f0cbadea8b Use GPP_GPC in the last place it isn't already used. 2011-11-11 23:01:59 +00:00
jakllsch
68c14001ba Improve punctuation and consistency in some comments. 2011-11-11 22:57:27 +00:00
gdt
c9bfbf1142 Move RTF_ANNOUNCE flag so that it no longer conflicts with RTF_PROTO2.
RTF_ANNOUNCE was defined as RTF_PROTO2.  The flag is used to indicated
that host should act as a proxy for a link level arp or ndp request.
(If RTF_PROTO2 is used as an experimental flag (as advertised),
various problems can occur.)

This commit provides a first-class definition with its own bit for
RTF_ANNOUNCE, removes the old aliasing definitions, and adds support
for the new RTF_ANNOUNCE flag to netstat(8) and route(8).,

Also, remove unused RTF_ flags that collide with RTF_PROTO1:
  netinet/icmp6.h defined RTF_PROBEMTU as RTF_PROTO1
  netinet/if_inarp.h defined RTF_USETRAILERS as RTF_PROTO1
  (Neither of these flags are used anywhere.  Both have been removed
  to reduce chances of collision with RTF_PROTO1.)

Figuring this out and the diff are the work of Beverly Schwartz of
BBN.

(Passed release build, boot in VM, with no apparently related atf
failures.)

Approved for Public Release, Distribution Unlimited
This material is based upon work supported by the Defense Advanced
Research Projects Agency and Space and Naval Warfare Systems Center,
Pacific, under Contract No. N66001-09-C-2073.
2011-11-11 15:09:32 +00:00
njoly
3f9feaa4df Remove extra newlines. 2011-11-10 22:33:12 +00:00
riz
4c9d92224e Add pseudo-device drvctl. (Already exists in i386 domU config) 2011-11-10 22:16:56 +00:00
jakllsch
2c4d5c4f31 When applying the board-specific bits for the SMC 9332,
the mediasw has already been set to non-NULL, don't require it to be NULL.
2011-11-10 20:12:48 +00:00
seanb
d0ff9c06e4 - Remove unused variable from nd6_timer(). 2011-11-10 17:10:00 +00:00
riz
71932a0feb i386_use_pae is now just use_pae. 2011-11-10 03:45:40 +00:00