Commit Graph

224 Commits

Author SHA1 Message Date
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
uwe
f49836bca3 Add "break" to the empty "default" case.
Makes gcc3 happy.
2003-08-02 22:33:36 +00:00
itojun
3f14c71f75 reserve cdev major # for PF. ok'ed by technical-exec 2003-07-27 14:17:57 +00:00
lukem
0c82163c78 __KERNEL_RCSID() 2003-07-15 02:29:24 +00:00
fvdl
7dd7f8baa2 Handle 64bit DMA addresses on PCI for platforms that can (currently only
enabled on amd64). Add a dmat64 field to various PCI attach structures,
and pass it down where needed. Implement a simple new function called
pci_dma64_available(pa) to test if 64bit DMA addresses may be used.
This returns 1 iff _PCI_HAVE_DMA64 is defined in <machine/pci_machdep.h>,
and there is more than 4G of memory.
2003-06-15 23:08:53 +00:00
thorpej
0eff671820 Also pass a type argument to comcnattach() and com_kgdb_attach().
comspeed() (and thus cominit()) may need this information.
2003-06-14 17:01:06 +00:00
uwe
3d2f28b075 When doing bit blit, set the flow direction based on the condition_a flag. 2003-04-27 04:11:32 +00:00
uwe
ee5e1f8ed0 attach_kbd should be initied to zero. makes keyboard attach properly
when booting with serial console.  tested on jornada 680.
2003-04-26 18:22:56 +00:00
ragge
d8c8fa8111 Add pseudo-device ksyms. 2003-04-26 14:10:04 +00:00
ragge
69a66687f8 Call ksyms_init() instead of ddb_init() in case of
NKSYMS || defined(DDB) || defined(LKM)
2003-04-26 11:05:05 +00:00
ragge
766d04f56a Add ksyms device major. 2003-04-25 21:10:46 +00:00
christos
a2dfb1b570 PR/3012: Greg A. Woods: Write all float.h files [except the vax of course]
in terms of float_ieee.h
2003-04-19 23:05:28 +00:00
uwe
c7bbfa679e Mark 'ram' MEMORY as allocatable instead of explicitly placing
sections into it.  This also ensures that sections, not mentioned in
the linker script (currenty - link_set_*), end up in the correct
place.  Otherwise kernel panics very early, trying to access link_set
info.
2003-04-15 16:29:12 +00:00
thorpej
fd53a1c386 Use PAGE_SIZE rather than NBPG. 2003-04-02 03:51:33 +00:00
thorpej
d071d9a8d0 Use PAGE_SIZE rather than NBPG. 2003-04-01 15:02:05 +00:00
kent
cd7d9faeaf Introduce BUS_DMA_NOCACHE, and bus_dmamem_map() of i386 supports it. 2003-01-28 01:07:51 +00:00
thorpej
470075179e Merge the nathanw_sa branch. 2003-01-18 23:20:24 +00:00
lukem
4bb41ae2f2 Rework how KERNOBJDIR functions; now it's always determined with
cd ${KERNSRCDIR}/${KERNARCHDIR}/compile && ${PRINTOBJDIR}
This is far simpler than the previous system, and more robust with
objdirs built via BSDOBJDIR.

The previous method of finding KERNOBJDIR when using BSDOBJDIR by
referencing _SRC_TOP_OBJ_ from another directory was extremely
fragile due to the depth first tree walk by <bsd.subdir.mk>, and
the caching of _SRC_TOP_OBJ_ (with MAKEOVERRIDES) which would be
empty on the *first* pass to create fresh objdirs.

This change requires adding sys/arch/*/compile/Makefile to create
the objdir in that directory, and descending into arch/*/compile
from arch/*/Makefile.  Remove the now-unnecessary .keep_me files
whilst here.

Per lengthy discussion with Andrew Brown.
2003-01-06 17:40:18 +00:00
thorpej
72a2c87923 Use aprint_normal() for cfprint routines. 2003-01-01 01:34:45 +00:00
uwe
580c60b346 When scanning HP keyboard, disable output on all scan lines except the
one we are currently scanning.  This is what Hitachi's sample WinCE
code does.  Thanks to YAEGASHI Takeshi for pointing this out!
This makes same row chords work properly, most importantly
Ctrl-@, Ctrl-W, Ctrl-S, Ctrl-Alt-F1 (ctrl row), Ctrl-Alt-F3 (alt row).
2002-12-24 11:49:03 +00:00
lukem
0635de35a3 Remove KDIR=, since SYS_INCLUDE=symlinks and KDIR are not supported any more. 2002-11-26 23:30:07 +00:00