Commit Graph

214 Commits

Author SHA1 Message Date
uch
eb34a4299d jornada 6x0 use j6x0pwr as power button. remove special keymap. 2004-07-03 12:47:53 +00:00
uch
fc3043bcdd hpcmips independent part are moved to sys/dev/hpc/ 2004-07-03 12:46:57 +00:00
uch
378e6e4293 add HPW200EC keymap. patch by "Jeremiah Holt" <jholt5638@earthlink.net> 2004-06-28 14:44:28 +00:00
uwe
6bed93d4a6 Driver for HP F1275A external keyboard. 2004-06-23 21:50:22 +00:00
tsarna
f53a32e6c9 Refactor tpcalib and hpc* ports to make tpcalib MI, as discussed on tech-kern. 2004-05-28 17:52:06 +00:00
tv
89349d303e Give the MobilePro 800 and MobilePro 880 correct keymaps: fix the
positioning of the cursor keys to match the keycaps, and make the cmdmap
work correctly.
2004-04-06 15:48:17 +00:00
uwe
0e524a56a1 Scandinavian keyboard layout for Jornada 680/690. 2004-03-18 01:11:58 +00:00
uwe
dd45c4817c Comment change only. Add a reminder that if you add new entry to
hpckbd_keymap_table, you must make sure that pckbd_keydesctab[] in
sys/dev/pckbport/wskbdmap_mfii.c has a placeholder KB_MACHDEP entry
for the base ht_layout that you refer.

I've stepped on this rakes two times already, with DE and FR keymaps,
so I gather, I'd better add this reminder, if only for myself. :)
2004-03-17 04:34:25 +00:00
uwe
5b0626de75 The platid for Jornada 680/690 with European English (ABB) keyboard is
now properly renamed to have the EU suffix.

Enable Jornada 680/690 French (ABF) keymap now that we have a platid
for it (requires updated hpcboot.exe to use).
2004-03-17 04:24:16 +00:00
uwe
e9612620ef Now that we can control contrast and brightness of the Jornada 680 LCD
add KS_Cmd_{Contrast,Brightness}{Up,Down} to default keymaps.
2004-03-15 23:25:09 +00:00
uwe
4b44d3c34a Change #if 0 protecting the lines with KS_euro to #ifdef KS_euro, so
that the keymap definitions are forward-compatible.
2004-03-15 22:49:07 +00:00
bjh21
dff5222d3a Abstract the interface between pckbc(4), and the pckbd(4) and pms(4)
drivers that attach to it.  This allows for other host interface chips
that use the same keyboards and mice, such as the ones in the ARM
IOMD20, ARM7500, and SA-1111.  The PC-compatible driver is still
called pckbc(4), and the new abstraction layer is "pckbport", so the
child devices have moved from sys/dev/pckbc to sys/dev/pckbport, which
also contains some code shared between all host controllers.  To avoid
incompatibility, pckbdreg.h is still installed in
/usr/include/dev/pckbc.

In theory, this shouldn't cause any behavioural changes in the drivers
concerned.  Thy just use rather more function pointers than before.  Tested
on i386 and (with a new host driver) acorn32.  Compiled on several other
affected architectures.
2004-03-13 17:31:33 +00:00
shin
88d334ff8f Add MobilePro 880 (MC/R730A) to hpcbatterytable.h.
Addresses PR/23651.
2003-12-27 07:27:22 +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
agc
df214f1879 Don't use NULL when an integer is needed. 2003-10-22 08:58:38 +00:00
uwe
8dccb95e85 French keydesc for Jornada 680/690. Written based on photos and
descriptions of WinCE behavior from Ge'rard Gambaro (jornada.free.fr).
Not tested on an actual ABF unit.

Hidden under #if 0, as we don't have a platform id for French Jornadas yet.
But I think it's better off committed before it's got lost.
2003-08-23 02:48:47 +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
9d1ca6d8d9 Do not ##-concatenate identifiers with parens.
Makes gcc3 preprocessor happy.
2003-08-02 22:14:13 +00:00
lukem
9391907df1 add missing __RCSID() 2003-07-14 15:40:37 +00:00
fvdl
d5aece61d6 Back out the lwp/ktrace changes. They contained a lot of colateral damage,
and need to be examined and discussed more.
2003-06-29 22:28:00 +00:00
ichiro
b96eb9591c struct proc * -> struct lwp * 2003-06-29 11:20:44 +00:00
uwe
c7e8d1f928 Oops, correct platids for 680/690 with European English (ABB)
keyboard.  We still use hpcboot's "Hungarian" entry for them.
2003-05-18 19:06:11 +00:00
uwe
1cfc465c45 Keymaps for US and German keyboards for Jornada 680/690. 2003-04-26 01:06:06 +00:00
takemura
285679b875 Added new ioctl command, WSMOUSEIO_GETID to tell touch panel identifier
for tpctl(8).
2003-01-03 04:36:26 +00:00
thorpej
703e7687a9 Use aprint_normal() in cfprint routines. 2003-01-01 00:16:46 +00:00
thorpej
72a7af27b0 Use aprint_normal() in cfprint routines. 2003-01-01 00:10:15 +00:00
uwe
0982def9d8 Sync US map with reality. Rename what used to called "us" map to
international.  Drop Hungarian map that is a proper subset of
international map (and I strongly suspect the "Hungarian" is a
misnomer in the first place).  Adjust hpckbd_keymap_table accordingly.

With this change selecting "US" in hpcboot will give you real US
layout.  Selecting "Hungarian" will give you international layout and
I think hpcboot shall be changed accordingly.

I'm not sure if there's separate "German" layout for hpcs.  I think
any layout that is not different from us/international on the primary
layer shall be handled with wsconsctl.
2002-12-28 22:50:09 +00:00
uwe
b83d14425f jornada6x0_us_keytrans: Map "del" key to 211 ("Del") not 14 ("<=").
Our default keymaps map "<=" to KS_Delete (i.e. vt-style rubout)
anyway, so default behavior is not changed, but some people might
prefer to map "<=" and "del" differently.  Let them distinguish
between the two.  Fix the flying windows key mapping it should be 219,
not 221 (menu).  Drop non-existent keycode 125.
2002-12-28 17:49:01 +00:00
takemura
564a7fd556 Changed SCALE value from (1024*1024) to (1024*256) to support large (1024<)
sample values.
2002-12-15 09:17:07 +00:00
hamajima
764daa3585 turn off light of LCD, when I closed cover 2002-12-10 06:18:07 +00:00
hamajima
02e91ee75e add Sigmarion2. it is same keymap of Sigmarion. 2002-11-28 15:09:48 +00:00
jdolecek
e0cc03a09b merge kqueue branch into -current
kqueue provides a stateful and efficient event notification framework
currently supported events include socket, file, directory, fifo,
pipe, tty and device changes, and monitoring of processes and signals

kqueue is supported by all writable filesystems in NetBSD tree
(with exception of Coda) and all device drivers supporting poll(2)

based on work done by Jonathan Lemon for FreeBSD
initial NetBSD port done by Luke Mewburn and Jason Thorpe
2002-10-23 09:10:23 +00:00
thorpej
c9b3657ce9 Add trailing ; to CFATTACH_DECL. 2002-10-02 16:33:28 +00:00
reinoud
e46f039e1a G/c static pow() function that was used to calculate (2^x) only; replaced
the two instances with equivalent (1<<x).
2002-10-02 10:43:06 +00:00
thorpej
9d4a640785 Use CFATTACH_DECL(). 2002-09-30 21:04:24 +00:00
thorpej
f818766afe Declare all cfattach structures const. 2002-09-27 20:31:45 +00:00
thorpej
d1ad2ac4f2 Rather than referencing the cfdriver directly in the cfdata entries,
instead use a string naming the driver.  The cfdriver is then looked
up in a list which is built at run-time.
2002-09-27 02:24:06 +00:00
thorpej
71404bb533 Don't include <sys/map.h>. 2002-09-25 22:21:01 +00:00
gehenna
77a6b82b27 Merge the gehenna-devsw branch into the trunk.
This merge changes the device switch tables from static array to
dynamically generated by config(8).

- All device switches is defined as a constant structure in device drivers.

- The new grammer ``device-major'' is introduced to ``files''.

	device-major <prefix> char <num> [block <num>] [<rules>]

- All device major numbers must be listed up in port dependent majors.<arch>
  by using this grammer.

- Added the new naming convention.
  The name of the device switch must be <prefix>_[bc]devsw for auto-generation
  of device switch tables.

- The backward compatibility of loading block/character device
  switch by LKM framework is broken. This is necessary to convert
  from block/character device major to device name in runtime and vice versa.

- The restriction to assign device major by LKM is completely removed.
  We don't need to reserve LKM entries for dynamic loading of device switch.

- In compile time, device major numbers list is packed into the kernel and
  the LKM framework will refer it to assign device major number dynamically.
2002-09-06 13:18:43 +00:00
takemura
6a286a4f2a BUGFIX: WSDISPLAYIO_SVIDEO and WSDISPLAYIO_GVIDEO don't work. 2002-09-01 11:38:29 +00:00
junyoung
3d826105dc alloc_attr -> allocattr
Approved by Matthias Drochner.
2002-07-04 14:37:10 +00:00
uwe
bc05b169da Correct AltGr keycode for 680/US layout. 2002-05-11 04:57:43 +00:00
uwe
c061e3c249 Use symbolic WSCOL_* colour names instead of magic numbers. 2002-05-10 22:01:13 +00:00
uwe
c43b5d9a7b Comment change only: remove XXX. 2002-05-10 21:05:13 +00:00
uch
eb330e618b add Jornada680/690 US-keymap. patch by uwe. 2002-05-02 16:38:02 +00:00
takemura
8bbc2ff5a7 Added '#if defined(_KERNEL)' surrounging KERNEL_RCSID macro. Hpccmap is
used in bootloader too.
2002-04-14 09:07:04 +00:00
takemura
090be59325 Fixed dev/hpc/hpcfb.c to set RI_BSWAP flag in 8bpp for rasops8.c
and backout changes 'fix LCD byte-order setting':
        arch/hpcsh/dev/hd64461/hd64461video.c   Rev. 1.7 to 1.8
        arch/hpcmips/dev/plumvideo.c            Rev. 1.23 to 1.24
        arch/hpcmips/tx/tx3912video.c           Rev. 1.24 to 1.25
2002-04-13 09:29:53 +00:00
atatat
31144d9976 Convert ioctl code to use EPASSTHROUGH instead of -1 or ENOTTY for
indicating an unhandled "command".  ERESTART is -1, which can lead to
confusion.  ERESTART has been moved to -3 and EPASSTHROUGH has been
placed at -4.  No ioctl code should now return -1 anywhere.  The
ioctl() system call is now properly restartable.
2002-03-17 19:40:26 +00:00
uch
3d0f70f7fc remove ite8181video's bivideo dependency. 2002-03-06 15:00:04 +00:00
sato
b2666184d8 delete '#if 0' codes. 2002-02-09 15:20:49 +00:00
takemura
345bbe4615 Do nothing if there is no screen. 2002-01-27 11:08:30 +00:00
takemura
3d94c421cc Added new config hook type PCIINTR (handling PCI interrupt).
Added config hook APIs, config_connect, config_disconnect and
config_connected_call.
Supported PCIINTR type event in hpcio.
2002-01-13 14:00:38 +00:00
takemura
9ea4be44f4 Number of elements in button_config is smaller than CONFIG_HOOK_MAX_ID. 2002-01-13 08:28:27 +00:00
tsutsui
c12b5c180d Call malloc(9) with M_ZERO flag instead of memset() after malloc(). 2002-01-12 16:41:02 +00:00
uch
474928fb8f when bootinfo has no framebuffer information, don't attach bicons. 2002-01-02 12:57:49 +00:00
lukem
ecb81c3f6d - convert usage of "defopt" to "defflag" where the relevant option does
not support a value (e.g., it's to be used as "options FOO" instead of
  "options FOO=xxx"). options that take a value were converted to
  defparam recently.
- minor whitespace & formatting cleanups
2001-11-28 10:21:10 +00:00
lukem
0fa231134c - replace "defopt" with "defparam" for options which must take a value,
as config(8) will warn for value-less defparam options
- minor whitespace/formatting cleanup
- consolidate opt_tcp_recvspace.h and opt_tcp_sendspace.h into opt_tcp_space.h
2001-11-20 14:34:18 +00:00
lukem
b84f53efc5 add RCSID 2001-11-13 12:47:33 +00:00
uch
db344ecd7b fix PERSONA keymap. patch by KIYOHARA Takashi 2001-10-08 15:35:06 +00:00
uch
17d54b69e0 remove unused font_clB8x8_data[]. 2001-09-15 15:27:59 +00:00
uch
1877683f2b HITACHI PERSONA keymap. patch by KIYOHARA Takashi. 2001-09-14 17:22:52 +00:00
uch
edcb9ebf0f fix hf_order_flags. 2001-08-15 15:16:53 +00:00
toshii
f2c68887e0 Check if sc->sc_dc is NULL, so that non-console hpcfb can attach without
a panic.
2001-08-02 14:40:04 +00:00
sato
5215d66720 add MC-R700 battery parameters. 2001-08-02 11:21:27 +00:00
sato
2746e887bc turn pwctl_debug to 0 2001-08-02 09:47:18 +00:00
sato
52d89f6cf1 Abort redrawing when screen switch was requested.
Set virtual text vram when other one is drawing framebuffer.
2001-07-31 10:50:06 +00:00
sato
387ddeb6f1 change DPRINTF() to VPRINTF() in pwctl_hardpower(). 2001-07-31 10:37:49 +00:00
sato
2ddad1a12e add missing terminator of hpcbattery_parameters. 2001-07-24 09:23:30 +00:00
takemura
64b6b76a21 You must set 'HPCFB_SWAP_*' if bytes are stored in reverse order, i.e.
little endian like order, however, usage of 'HPCFB_SWAP_*' was widely
misunderstood because it reminded you of 'RI_BSWAP' in raster operation.
Please note that 'RI_BSWAP' indicate that frame buffer byte order is different
from natural order of system while 'HPCFB_REVORDER_*' is independent of
system byte order.
2001-07-22 09:56:39 +00:00
takemura
0f960df346 - delete sc->sc_screens[]
- BUGFIX: hpcfb_alloc_screen clears real frame buffer
 - Doesn't allocate any screen in attach routine
2001-07-21 14:49:58 +00:00
sato
98f091d6b9 add hpcmips battery parameter tables. 2001-07-19 11:40:19 +00:00
sato
8e381812a7 battery parameter structures for hpc systems. 2001-07-19 11:39:24 +00:00
toshii
e267c67b60 "infomation" -> "information" 2001-07-17 01:37:43 +00:00
sato
9879757a53 disable framebuffer drawing while suspending. 2001-07-13 10:23:41 +00:00
toshii
35836fce7a bcopy -> memcpy, bzero -> memset. 2001-07-07 09:19:39 +00:00
toshii
90b62cfa61 Don't include <machine/autoconf.h>, which should not be necessary.
Moreover, hpcarm doesn't have such a header file.
2001-06-22 14:38:44 +00:00
uch
a9d7b546d6 make this work. 2001-06-13 19:02:13 +00:00
sato
a2c4938b03 not set HPCFB_SWAP_BYTE 2001-06-11 09:36:44 +00:00
uch
03e1c3aa16 implement HPCFB_SWAP_BYTE. 2001-06-05 17:29:12 +00:00
uch
b596bfa2d0 add vc_reverse flag to struct video_chip. 2001-06-05 15:02:40 +00:00
uch
a4221d6b08 change behavior of cmap_work_alloc(). 2001-06-05 15:02:12 +00:00
uch
859a6a49b2 ANSI KNF. 2001-06-04 18:59:31 +00:00
uch
ecdf760718 fix locking problem of event queue access. 2001-05-08 17:23:09 +00:00
uch
dbb7276f40 fix RCS Id. 2001-05-08 14:46:06 +00:00
takemura
54d9a46bbc Vrc4172 GPIO support. This device is currently configured on PenCentra 130. 2001-05-06 14:25:15 +00:00
scw
2963ff5c58 Add l_poll' to struct linesw' and provide an xxxpoll() entry point
in each tty driver to indirect through it.

This allows tty line-disciplines to handle poll(2) system calls.
2001-05-02 10:32:08 +00:00
takemura
a8304325bf Fix 'busname' to attach nodes correctly. 2001-05-01 00:25:16 +00:00
takemura
26b0905dd0 Machine independent GPIO interface. 2001-04-30 11:42:17 +00:00
takemura
4ca3c858b6 Copy of sys/arch/hpcmips/vr/button_vrgiu.c. 2001-04-30 10:10:18 +00:00
takemura
c732b45553 Copy of sys/arch/hpcmips/vr/pwctl_vrgiu.c. 2001-04-30 10:09:14 +00:00
takemura
caf5e03906 Add Mobile Pro 780 own keymap. This resolves the arrow key problem on
Mobile Pro 780.
2001-04-18 14:01:06 +00:00
thorpej
669641cb9d splimp -> splvm (it's questionable whether or not this is really
the right level at all -- maybe splhigh?  Anyway, XXX comment added
as well).
2001-04-12 19:45:25 +00:00
jdolecek
745ab257dc Put back all header files defining ioctls 2001-04-11 19:07:36 +00:00
jdolecek
372e5956ef Only install headers which are actually used by our userland. This
saves about 2.2MB under /usr/include/dev/. Discussed on tech-kern@
recently.

I HOPE to get the list right. The headers I left in are ones
used for MI tools and those whose usage I discovered by grep over tree sources.
Feel free to put needed includes back in if you encounter anything which
should not be removed from lists.
2001-04-11 07:42:31 +00:00
sato
a71959e501 fix KS_Cmd_Screen* in sigmarion_cmdmap[]. 2001-04-09 16:05:53 +00:00
sato
5531835e99 add MobilePro770 cmdmap. 2001-04-05 11:37:18 +00:00
sato
6c5da9bd76 o Change initialization for config_hook() base lcd control.
o Fix backlight control in case that light is controlable but not be
  able to get status.
o change some verbose prints.
2001-03-26 09:40:45 +00:00
uch
2f3cc13258 add HP 620LX Japanese model keymap. 2001-03-24 17:33:12 +00:00
uch
51243a1c74 add Hugarian and German keymap
patch by Laszlo Szabo <rka@rka.hu>
2001-03-22 18:37:32 +00:00
sato
daf7016248 * enable HPCFB_MULTI codes.
* delete unneed non HPCFB_MULTI codes.
2001-03-17 14:59:33 +00:00
sato
ee1d25e7bd * assume backlight is on if backlight value cannot get.
* move the lcd control codes used config_hook_call()
  in *_hardpower() to *_power().
2001-03-12 08:54:25 +00:00
sato
80214041c7 support WSDISPLAYIO_SVIDEO/WSDISPLAYIO_GVIDEO.
lcd on/off
2001-03-09 08:54:18 +00:00
takemura
49cddb00a7 Add platform id and keymap for CASIO PocketPostPet. 2001-03-04 03:40:39 +00:00
takemura
817d2a2ce1 Fix key codes of arrow keys:
72(KS_KP_Up)	-> 200(KS_Up)
        75(KS_KP_Left)	-> 203(KS_Left)
        77(KS_KP_Right)	-> 205(KS_Right)
        80(KS_KP_Down)	-> 208(KS_Down)
in 11 keymaps:
        tc5165_telios_jp
        tc5165_compaq_c_jp
        m38813c_keymap
        mcr_jp
        z50
        tripad
        mccs
        mobilepro
        mobilepro750c
        intertop
        sigmarion_jp
2001-03-04 03:04:30 +00:00
uch
b36a55093a HP Jornada 680 Japanese model keymap. 2001-03-02 19:19:34 +00:00
uch
2485a882f2 if catch unknown scancode, print its row and column. 2001-03-01 16:41:36 +00:00
sato
b8e5bc569c * add WSDISPLAYIO_PARAM_BACKLIGHT, WSDISPLAYIO_PARAM_CONTRAST,
WSDISPLAYIO_PARAM_BRIGHTNESS supports.
2001-02-27 08:54:17 +00:00
uch
38626ea224 add HP Jornada 690 Japanese model keymap. 2001-02-24 19:52:22 +00:00
uch
edde743dc9 replace mips_btop, mips_ptob with mips, sh, arm common define.
ANSIfy and de-__P()
2001-02-24 19:51:20 +00:00
uch
b81de58f77 I forgot to move Makefile. 2001-02-23 14:08:54 +00:00
uch
659f65e0ee hpc common files are moved to dev/hpc. 2001-02-22 18:37:54 +00:00
uch
85fcf16be0 fix flag. 2001-02-12 17:55:09 +00:00
uch
f19685fa10 I forgot to initialize bicons for hpcmips. 2001-02-09 20:42:27 +00:00
uch
9f7e4a2f04 add hpcmips/hpcsh common device directory
put bicons. (builtin console driver that don't require actual device driver)
2001-02-09 19:43:23 +00:00