Commit Graph

244 Commits

Author SHA1 Message Date
uwe
e548ab355a Correct the comment about contrast control in HD64461 GPIO port B:
6th bit is the least significant, 3rd is the most significant.
2004-04-04 17:49:38 +00:00
uwe
fad92c3ca3 When we attach a channel, set a high level to DRV control pin of the
external buffer for the PC card connected to the channel.  This hack
makes pcmcia cards "being used" at the boot time (by WinCE or NetBSD)
correctly detected.  A machine running with root on NFS can now be
properly rebooted.
2004-03-27 02:53:12 +00:00
uwe
8dd212dad7 Add option HD64461PCMCIA_REORDER_ATTACH that attaches channels in
reversed order.

When you boot with two CF cards inserted, this options makes the one
in the "memory only" slot (channel 1), which is almost always the card
with the NetBSD install, attached as wd0.

Unlike using fixed unit numbers in the kernel config, if you boot with
only a single CF card, that single card will still be wd0 regardless
of which slot it is inserted in.

http://mail-index.netbsd.org/port-hpcsh/2003/10/23/0000.html provides
a more verbose description of why this option is convenient for most
usage patterns.
2004-03-27 02:24:01 +00:00
wiz
f1b19ce1db Backout previous -- this is not enough, config needs to be taught
how to reach partitions above h. Noted by Simon Burge, related to
PR 24905.
2004-03-25 15:26:35 +00:00
wiz
3afe1a1d87 Define maxpartitions to the same value as MAXPARTITIONS in disklabel.h.
Addresses PR 24905 by Simon Burge.
2004-03-25 12:38:49 +00:00
atatat
19af35fd0d Tango on sysctl_createv() and flags. The flags have all been renamed,
and sysctl_createv() now uses more arguments.
2004-03-24 15:34:46 +00:00
uwe
8333a3f671 Comment out RTC_OFFSET as now kernel pays attention to timezone
information passed by hpcboot.exe.
2004-03-23 03:48:39 +00:00
uwe
7565621829 Set rtc_offset from bootinfo passed by hpcboot.exe unless overridden
with option RTC_OFFSET.  From hpcmips.
2004-03-23 03:36:32 +00:00
uwe
0589938ad6 s/r15/sp/ for clarity.
Whitespace nit.
2004-03-21 02:20:21 +00:00
uwe
501860614d Add j6x0lcd. 2004-03-16 00:23:31 +00:00
uwe
9d8bb20eb3 Use CONFIG_HOOK_POWERCONTROL_LCD to control turning the LCD on/off
(the _LCDLIGHT hook is apparently meant to control the LCD backlight).
2004-03-15 23:38:16 +00:00
uwe
c900434559 Add j6x0lcd(4). 2004-03-15 03:49:14 +00:00
uwe
ef7c82009e Driver that controls power, brightness and contrast of the Jornada 680 LCD. 2004-03-15 03:45:50 +00:00
uwe
9071e10a46 Support for WSDISPLAYIO_PARAM_CONTRAST. 2004-03-15 03:38:39 +00:00
uwe
dc89f5be32 If MEMORY_DISK_IS_ROOT - don't compile/use get_device(), as setroot()
anyway will ignore the info we pass.
2004-02-23 03:32:23 +00:00
uwe
269b569458 Add wi at pcmcia.
While here, do some cosmetic changes:
* sort PCMCIA network interfaces section.
* ksyms is not a wscons related pseudo device, so move it to misc.
* line up scif at shb line, and move related options to be after it.
2004-01-18 03:00:48 +00:00
uwe
3fcefe2a85 Use callout_schedule instead of callout_reset to re-establish keyboard
callouts.

While here, #if 0 the code in pfckbd_callout_hp to read (and ignore)
PFC registers G and H.
2003-12-14 04:03:16 +00:00
uwe
85a134f3c1 Use CONFIG_HOOK_BRIGHTNESS* to support WSDISPLAYIO_PARAM_BRIGHTNESS.
Use CONFIG_HOOK_POWERCONTROL_LCDLIGHT to turn on/off the LCD in
response to WSDISPLAYIO_SVIDEO.

Implementation of these hooks for Jornada 680 is to follow shortly.
2003-12-14 02:52:15 +00:00
jmc
695a2a2f9f Change reference at bottom from sys/dev/majors to sys/conf/majors to match
reality
2003-12-10 02:04:00 +00:00
atatat
13f8d2ce5f Dynamic sysctl.
Gone are the old kern_sysctl(), cpu_sysctl(), hw_sysctl(),
vfs_sysctl(), etc, routines, along with sysctl_int() et al.  Now all
nodes are registered with the tree, and nodes can be added (or
removed) easily, and I/O to and from the tree is handled generically.

Since the nodes are registered with the tree, the mapping from name to
number (and back again) can now be discovered, instead of having to be
hard coded.  Adding new nodes to the tree is likewise much simpler --
the new infrastructure handles almost all the work for simple types,
and just about anything else can be done with a small helper function.

All existing nodes are where they were before (numerically speaking),
so all existing consumers of sysctl information should notice no
difference.

PS - I'm sorry, but there's a distinct lack of documentation at the
moment.  I'm working on sysctl(3/8/9) right now, and I promise to
watch out for buses.
2003-12-04 19:38:21 +00:00
chs
e07f0b9362 eliminate uvm_useracc() in favor of checking the return value of
copyin() or copyout().

uvm_useracc() tells us whether the mapping permissions allow access to
the desired part of an address space, and many callers assume that
this is the same as knowing whether an attempt to access that part of
the address space will succeed.  however, access to user space can
fail for reasons other than insufficient permission, most notably that
paging in any non-resident data can fail due to i/o errors.  most of
the callers of uvm_useracc() make the above incorrect assumption.  the
rest are all misguided optimizations, which optimize for the case
where an operation will fail.  we'd rather optimize for operations
succeeding, in which case we should just attempt the access and handle
failures due to insufficient permissions the same way we handle i/o
errors.  since there appear to be no good uses of uvm_useracc(), we'll
just remove it.
2003-11-13 03:09:28 +00:00
uwe
79ddf479da Add adc, j6x0pwr, j6x0tp. 2003-11-09 22:36:17 +00:00
uwe
9df7e01734 Implement trivial WSDISPLAYIO_SVIDEO that flips DON bit in LCDLDR1.
This only turns off the display in the LCD controller.

TODO: Need to add a platform specific way to turn the screen on and
off as well (e.g. on Jornada 680 this is bit 0 in hd64461 GPIO port B).
2003-11-09 02:05:42 +00:00
uwe
758b6ed7d7 ispell comments. 2003-11-05 00:28:34 +00:00
uwe
0af2a03977 Provide wskbd* at j6x0tp? attachment that maps taps on the "HP hard
icons" (along the right edge of the screen) to key presses.
2003-11-04 03:43:12 +00:00
jdolecek
ed1e458331 vaddr_t is not a pointer 2003-11-03 20:32:17 +00:00
uwe
72b8dfe22a In hd64461video_update_videochip_status init depth to supress bogus
-Wuninitialized.
2003-11-01 03:45:52 +00:00
uwe
e9dc4000d1 XXX: Init dummy variable that we only use in asm() to pacify
XXX: -Wuninitialized.  There must be a better way.
2003-11-01 03:24:12 +00:00
uwe
289bc4802a #include "debug_kloader.h" 2003-11-01 02:29:08 +00:00
uwe
ffb8ffc1fc Bump _INTR_N from 8 (all of which were used) to 16 so that it's
possible to do experiments with new drivers without hitting this
limit.  Of this delta we already consume two slots on Jornada 680 for
IRQ0 (j6x0pwr) and IRQ3 (j6x0tp).
2003-10-25 03:45:03 +00:00
uwe
6d2654649f Add kernel_text label so that pmap(1) works. 2003-10-25 00:18:43 +00:00
kleink
8a1a0686ad No need for multiple-inclusion protection in these. 2003-10-23 13:02:52 +00:00
uwe
94a688bcbc In hd64461pcmcia_chip_io_map set *windowp to 0.
This driver ignores i/o window handle, but most 'at pcmcia'
attachments init their sc_io_window to -1 and then check at detach
time if it was changed from the "bad" value.  Keep them happy, so that
they can correctly clean up when card is detached.
2003-10-23 02:34:07 +00:00
uwe
49fd54d39a Use adcvar.h. 2003-10-22 23:52:46 +00:00
jdolecek
ee510816af add wsfont major to archs which have the other wscons devices 2003-10-22 16:53:22 +00:00
uwe
437e63c180 __KERNEL_RCSID. 2003-10-19 02:22:56 +00:00
uwe
738a5e234e Config glue for j6x0tp(4). 2003-10-19 02:21:40 +00:00
uwe
e4bd58b011 Driver for Jornada 680 touch screen. 2003-10-19 02:20:25 +00:00
lukem
7d84b90c92 Use one 'atabus* at ata?' instead of multiple 'atabus* at FOOide? channel ?'
Use  'atapibus* at atapi?'  instead of  'atapibus* at atabus?'
2003-10-18 08:30:12 +00:00
uwe
b78fce9820 Config glue for j6x0pwr(4). 2003-10-18 01:40:05 +00:00
uwe
8b50c662e8 Jornada 680/690 power &c. Doesn't do much useful at the moment, but
provides RTFS documentation on how things are wired in Jornada.

Listens to "switch off" interrupt generated when On/Off button is
pressed, or the lid is closed.

Polls the status of main and backup batteries and warns if main
battery is low.
2003-10-18 01:38:39 +00:00
jdolecek
79ebb210fa add majors for ipfilter, lkm, vnd, tun, raid, cgd, ccd, and md
where missing
2003-10-15 18:20:19 +00:00
jdolecek
ef5bb330f5 reassing majors for crypto and pf to use the newly defined MI major
range
2003-10-10 22:42:39 +00:00
jdolecek
4e915c9ccd update the comment - the space for machine-dependant majors
is reduced to 0-143
follows discussion on tech-kern
2003-10-10 21:21:25 +00:00
bouyer
367dd334c1 Add atabus. 2003-10-08 11:09:26 +00:00
jdolecek
e6286b949a Add some framework for MI assignment of device majors - add sys/dev/majors
which is automatically included during kernel config, and add comments
to individual machine-dependant majors.* files to assign new MI majors
in MI file.

Range 0-191 is reserved for machine-specific assignments, range
192+ are MI assignments.

Follows recent discussion on tech-kern@
2003-10-05 08:04:24 +00:00
uwe
a8bc4b332e Minor nit. Use more compact "device hd64461if {}" instead of separate
"define" and "device" lines.  Ditto for hd64465if.  Same ioconf.c is
generated.
2003-09-26 00:52:33 +00:00
itojun
4440262659 create /dev/crypto 2003-08-22 05:06:22 +00:00
agc
aad01611e7 Move UCB-licensed code from 4-clause to 3-clause licence.
Patches provided by Joel Baker in PR 22364, verified by myself.
2003-08-07 16:26:28 +00:00
uwe
2b2ae88a13 Move the definition of enum hd64461video_display_mode out of the
definition of struct hd64461video_chip.  Makes gcc3 happy.
2003-08-02 22:39:13 +00:00