508 Commits

Author SHA1 Message Date
bouyer
a47e2eb758 Add getlabelusesmbr(), as proposed in
http://mail-index.netbsd.org/tech-userlevel/2011/08/25/msg005404.html
This is used by disk tools such as disklabel(8) to dynamically decide is
the undelyling platform uses a disklabel-in-mbr-partition or not
(instead of using a compile-time list of ports).
getlabelusesmbr() reads the sysctl kern.labelusesmbr, takes its value from the
machdep #define LABELUSESMBR.
For evbmips, make LABELUSESMBR 1 if the platform uses pmon
as bootloader, and 0 (the previous value) otherwise.
2011-08-30 12:39:49 +00:00
dyoung
75ccda5a51 Don't set the iobase and iosize members of pcmciabus_attach_args because
they're not used in any meaningful way.
2011-07-26 22:52:47 +00:00
dyoung
5e9249a659 Move macros _BUS_SPACE_WRITE(), _BUS_SPACE_WRITE_MULTI(), et
cetera, into <hpcsh/bus_util.h> for both hpcsh/bus_space.c and
dev/hd64461/hd64461pcmcia.c to use them.

(I haven't had a close look at what hd64461pcmcia.c is doing, but I have
a hunch that it is a good use for bus_space_tag_create(9).)
2011-07-20 20:46:49 +00:00
dyoung
03ff1df734 Straggler from last: bus.h -> bus_{defs,funcs}.h. 2011-07-19 15:31:44 +00:00
dyoung
f48d88bf58 Change <machine/bus.h> to <sys/bus.h> throughout.
Split bus.h -> bus_{defs,funcs}.h.

Mark hpcsh/bus.h obsolete.
2011-07-19 15:30:51 +00:00
joerg
3eb244d801 Retire varargs.h support. Move machine/stdarg.h logic into MI
sys/stdarg.h and expect compiler to provide proper builtins, defaulting
to the GCC interface. lint still has a special fallback.
Reduce abuse of _BSD_VA_LIST_ by defining __va_list by default and
derive va_list as required by standards.
2011-07-17 20:54:30 +00:00
wiz
4cbd24b23f dependant -> dependent 2011-06-30 20:09:15 +00:00
matt
1f9eabee27 CFATTACH_DECL(..., sizeof(struct device), -> CFATTACH_DECL_NEW(..., 0
struct device * -> device_t
struct cfdata * -> cfdata_t
use __arraycount when appropriate
2011-06-06 17:27:42 +00:00
rmind
9b6bd2d968 Remove clause 3 (UCB advertising clause) from the University of Utah
copyright.  Confirmed by Mike Hibler, mike at cs.utah.edu - thanks!
Also, merge UCB and Utah copyright texts back into one, as they
originally were.

Extra verification by snj@.
2011-02-08 20:20:06 +00:00
tsutsui
a9ce633ac2 Xref module(7) in comments. 2011-01-03 06:07:42 +00:00
matt
6a66466f0c Move counting of faults, traps, intrs, soft[intr]s, syscalls, and nswtch
from uvmexp to per-cpu cpu_data and move them to 64bits.  Remove unneeded
includes of <uvm/uvm_extern.h> and/or <uvm/uvm.h>.
2010-12-20 00:25:23 +00:00
hannken
afdfce8e3b Remove unused count from pseudo-device md. 2010-11-23 11:13:52 +00:00
uebayasi
ef857263a0 sys/lwp.h for lwp0, sh3/proc.h for sh_proc0_init. 2010-11-15 06:30:04 +00:00
uwe
093ff704d4 Use empty do/while for no-op. 2010-08-09 23:08:59 +00:00
chs
be240ba6c0 make this compile with DIAGNOSTIC and PSH3TP_DEBUG. 2010-08-08 16:51:34 +00:00
chs
7609aebff3 remove dup "options KTRACE". 2010-08-08 16:25:49 +00:00
tsutsui
46e6b513a9 Rename some void * arg variables.
"self" implies device_t so it shouldn't be used for void pointers
passed as wsmouse cookie or callout function args.
2010-07-24 15:33:12 +00:00
tsutsui
301aeecd96 Enable options SYSVMSG, SYSVSEM, and SYSVSHM.
At least Xorg server requires SYSVSHM.
2010-07-21 11:10:14 +00:00
kiyohara
a03ec97cba Fix always free. It call, if memory was allocated. 2010-06-28 11:18:44 +00:00
plunky
c938c0405b add btmagic(4) where other Bluetooth drivers are listed 2010-05-22 19:02:07 +00:00
tsutsui
cc0ad78751 HPW-50PA PERSONA seems to use a different RTC base year value
(1996, not 1900 or 2000) so handle the quirk by device properties
and set it in MD device_register().
Also make RTC baseyear value patchable in sh3/dev/rtc.c.

No visible changes to other sh3 RTC users.
2010-05-22 15:51:31 +00:00
kiyohara
35af00ec31 Use COM_REGMAP instead of hd64461uart_{read,write}_1(). 2010-05-13 18:21:32 +00:00
kiyohara
19163bd05e Standby AFE Clock, if use_afeck is 0. Don't stop AFE Clock, if PERSONA boots
on serial console.
2010-05-13 18:07:40 +00:00
kiyohara
067d0c7013 Style. 2010-05-12 18:22:36 +00:00
kiyohara
222c1ad032 Suply clock SAFECKE_[IO]ST, if platid is PERSONA.
tested on HPW-50PA.
2010-05-12 18:16:53 +00:00
kiyohara
6ff2092a57 Fix arg of intr_establish().
comintr() expects struct com_softc* for arg.
2010-05-12 16:41:08 +00:00
tsutsui
3f23c95545 Sync kloader(4) behavior with hpcmips:
- use bootstr passed via reboot(2) with RB_STRING for the next kernel path
- prepare independent opt_kloader_kernel_path.h for KLOADER_KERNEL_PATH
- some cosmetics to reduce diffs from hpcmips

Tested on HPW-50PA (Hitachi PERSONA).
2010-05-03 12:16:04 +00:00
tsutsui
1a61dc7fca Explicitly specify "options HZ=64" in kernel config files so that
hz(9) is initialized properly in conf/param.c even before
cpu_initclocks(9) is called and timecounter(9) will take
a correct frequency for the clockinterrupt.
2010-05-01 11:35:41 +00:00
tsutsui
c9568b7a17 Enable file-system MFS. sysinst(8) assumes it's default. 2010-05-01 11:28:40 +00:00
pooka
835e533be4 Remove unused count (invariably "4") from pseudo-device fss. 2010-04-16 13:48:27 +00:00
pooka
d29401b8c0 Remove unnecessary #ifdef NFS. 2010-03-02 21:17:31 +00:00
pooka
1a66ba1950 Remove fs_mfs.h from users because it is now unnecessary and don't
generate fs_mfs.h anymore.
2010-03-02 17:28:08 +00:00
kiyohara
3fff8166d1 Register with pmf(9), tell it we don't need anything.
Based on rev 1.15 of src/sys/arch/hpcsh/dev/j6x0pwr.c
2009-12-19 07:09:28 +00:00
kiyohara
7b37c23343 Register null hooks with pmf(9) for now, which is no worse than befor
and allows us to test other things.  Power management is still done
via CONFIG_HOOK_POWERCONTROL_LCD.
Based on rev 1.14 of src/sys/arch/hpcsh/dev/j6x0lcd.c
2009-12-19 07:08:55 +00:00
kiyohara
1edc55859d Register with pmf(9), tell it we don't need anything.
Based on rev 1.23 of src/sys/arch/hpcsh/dev/j6x0tp.c
2009-12-19 07:08:23 +00:00
pooka
70d4493c77 Remove the portalfs kernel file system driver. Replace mount_portal(8)
with a version based on puffs.  User functionality remains the same.
2009-12-05 20:11:01 +00:00
pooka
d6224f4507 Remove support for NetBSD/playstation2. 2009-12-05 16:29:10 +00:00
rmind
3f18fe8123 - Use uvm_lwp_setuarea() instead of directly setting address to lwp_t::l_addr.
- Replace most remaining uses of l_addr with uvm_lwp_getuarea() or lwp_getpcb().
- Amend assembly in ports where it accesses PCB via struct user.
- Rename L_ADDR to L_PCB in few places.  Reduce sys/user.h inclusions.
2009-11-27 03:23:03 +00:00
cegger
9480c51b04 Add a flags argument to pmap_kenter_pa(9).
Patch showed on tech-kern@ http://mail-index.netbsd.org/tech-kern/2009/11/04/msg006434.html
No objections.
2009-11-07 07:27:40 +00:00
uwe
4e37bb5a9c Register with pmf(9), tell it we don't need anything. 2009-04-05 02:29:40 +00:00
uwe
c7b2923b5e Register null hooks with pmf(9) for now, which is no worse than before
and allows us to test other things.  Power management is still done
via CONFIG_HOOK_POWERCONTROL_LCD.
2009-04-05 02:23:00 +00:00
uwe
620a6f25ea Register with pmf(9), tell it we don't need anything. 2009-04-05 02:18:59 +00:00
uwe
28794590b6 Register null hooks with pmf(9) for now, which is no worse than before
and allows us to test other things.
2009-04-05 00:56:20 +00:00
uwe
e7c8b2e888 Register with pmf(9), tell it we don't need anything. 2009-04-04 23:45:24 +00:00
uwe
1ebb57a8c6 Don't bother trying to attach GPIO, AFE and FIR modules for which we
have no drivers.

Standby TIMER that we don't use.  One of the timers is always out of
standby on my Jornada on boot (WinCE uses it), so save some power.

Standby AFE and FIR for which we have no drivers (I don't know if any
hpcsh hardware actually uses them, so they are likely to be in standby
already anyway).
2009-03-22 02:25:11 +00:00
uwe
1251c9c4c1 Print only the offending masked HD6446x interrupt, not all of the NIRR. 2009-03-21 04:58:32 +00:00
uwe
89c9d74da9 Fix typo in message. 2009-03-21 03:51:41 +00:00
uwe
ba51317c25 Minor cosmetic. 2009-03-21 03:13:30 +00:00
uwe
76c0e81d47 In the current code the even loop is never exited, but it's cleaner to
have explicit kthread_exit at the end of the event thread routine.
2009-03-21 02:23:03 +00:00
uwe
df7998fac1 Move channel attachment to event thread (we already have one, so it's
easier to do it there rather than mess with config_interrupts()).

From kiyohara@.  Discussed with drochner@, who pointed out that pcmcia
drivers are expected to attach with interrupts enabled.
2009-03-21 02:02:39 +00:00