Commit Graph

208 Commits

Author SHA1 Message Date
itojun 8e7a88a3ff integer overflow. from silvio@qualys.com 2002-08-06 22:51:45 +00:00
yamt 560a78f6da constify. 2002-06-08 16:20:24 +00:00
yamt fed3639fa8 make auto const variables static.
(and space->tab)
2002-06-08 16:02:02 +00:00
lukem 06de426449 SIMPLEQ rototill:
- implement SIMPLEQ_REMOVE(head, elm, type, field).  whilst it's O(n),
  this mirrors the functionality of SLIST_REMOVE() (the other
  singly-linked list type) and FreeBSD's STAILQ_REMOVE()
- remove the unnecessary elm arg from SIMPLEQ_REMOVE_HEAD().
  this mirrors the functionality of SLIST_REMOVE_HEAD() (the other
  singly-linked list type) and FreeBSD's STAILQ_REMOVE_HEAD()
- remove notes about SIMPLEQ not supporting arbitrary element removal
- use SIMPLEQ_FOREACH() instead of home-grown for loops
- use SIMPLEQ_EMPTY() appropriately
- use SIMPLEQ_*() instead of accessing sqh_first,sqh_last,sqe_next directly
- reorder manual page; be consistent about how the types are listed
- other minor cleanups
2002-06-01 23:50:52 +00:00
takemura 9373835df6 BUGFIX: SigmarionII can't resume.
Added config_hook_call_reverse() to call the hardpower hook of CMU
(Vr clock mask unit) before the hardpower hook of MQ200 video controller.
2002-05-12 07:41:22 +00:00
takemura 0428a3de8e Just deleted junk lines. 2002-05-11 14:23:51 +00:00
takemura 108ae8567c BUGFIX: Xhpc dumps core on SigmarionII.
Attached MQ200 video controller at PCI bus.
2002-05-11 14:10:04 +00:00
takemura f8cb4c37a0 Fixed debug print. 2002-05-03 07:31:23 +00:00
takemura e63e3c0ed4 Added bus probing to avoid bus error. 2002-04-14 07:59:56 +00:00
takemura ab452aef6c Fixed 8bpp problem of mq200. 2002-04-14 06:07:40 +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 f35aa9c904 don't attach bivideo. 2002-03-06 15:01:05 +00:00
uch a3757d3ba3 fix LCD byte-order setting. 2002-02-19 14:21:47 +00:00
takemura 38e509404e Added vr4122ip. 2002-02-11 09:21:46 +00:00
uch 7d17099353 clean up debug print and configuration. 2002-01-29 18:53:01 +00:00
takemura 7f66bbfe65 Don't call tx39power_suspend_cpu unless the CPU is TX. 2002-01-27 11:11:11 +00:00
takemura 92f7bd9399 Deleted verbose error message in probe routine to probe silently. 2002-01-05 00:40:38 +00:00
takemura 01b846e28e Renamed sg2com -> com_hpcio. Now it seems to be working on SigmarionII. 2002-01-04 14:11:50 +00:00
takemura 936fd137e6 BUGFIX: It allocated only 44 bytes for hpcapm while the device needed
764 bytes.

it was really terrible.
2001-12-30 12:57:41 +00:00
soren 875bff0962 To make dev/pcmcia work on platforms with 64-bit bus_addr_t and
32-bit bus_size_t (sparc), change the pcmcia_mem_map(9) offsetp
argument to bus_size_t as it is used as a bus_space offset.
2001-12-15 13:23:20 +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
takemura 1d1d5c87af Rewrite bus stuff with method table in the bus tags. 2001-11-18 08:19:39 +00:00
thorpej af66038f73 Merge the thorpej-mips-cache branch onto the trunk. This is an
overhaul of how caches are handled for NetBSD's MIPS ports.
2001-11-14 18:15:10 +00:00
uch 961880b501 ANSIfy, KNF. 2001-09-16 05:32:18 +00:00
uch 58f851eeb5 ANSIfy, KNF, change my copyright. 2001-09-15 12:47:04 +00:00
sato 4891a8aac2 add more battery event. 2001-09-05 15:46:52 +00:00
jdolecek 74954dadf9 use unsigned variable types as appropriate 2001-08-05 18:07:51 +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
toshii e267c67b60 "infomation" -> "information" 2001-07-17 01:37:43 +00:00
uch 0774d04303 (TX39) switch from TX local I/O manager to hpcio 2001-06-13 19:09:07 +00:00
sato a2c4938b03 not set HPCFB_SWAP_BYTE 2001-06-11 09:36:44 +00:00
sato c1922a2158 not set HPCFB_SWAP_BYTE. 2001-06-11 09:21:15 +00:00
uch 7fd9577e9e fix WSDISPLAYIO_PUTCMAP bug. 2001-05-21 18:37:30 +00:00
uch 5dd9fe4aa5 set allocatable PCMCIA I/O space size. 2001-05-08 18:08:02 +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
takemura 44e4c53338 Add MQ200_USECRT option, which enables CRT output on MC/R530.
This is kernel configuration option and you can't enable and disable CRT
dynamically for now.
2001-03-25 13:06:52 +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
takemura 1ab9404c3c Fix definition of MQ200_GCR(n). This definition was quite bad! 2001-03-11 13:53:31 +00:00
sato 80214041c7 support WSDISPLAYIO_SVIDEO/WSDISPLAYIO_GVIDEO.
lcd on/off
2001-03-09 08:54:18 +00:00
sato b8e5bc569c * add WSDISPLAYIO_PARAM_BACKLIGHT, WSDISPLAYIO_PARAM_CONTRAST,
WSDISPLAYIO_PARAM_BRIGHTNESS supports.
2001-02-27 08:54:17 +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
sato 6602ad15b5 * show framebuffer address in boot time. 2001-02-15 09:17:18 +00:00
uch 68b5de4251 sync with bicons change. 2001-02-09 19:47:28 +00:00
sato dcdef16dcd Copyright year. 2001-02-02 08:31:04 +00:00
uch 584cfa7669 Switch to MI md_root.c. 2001-01-28 03:09:40 +00:00
sato 8211e0e08b * support more than 16 ids.
* check the event ids are in the table.
2001-01-26 03:44:33 +00:00
sato 3689556739 * fix typo.
* change PWR_* handling to PWR_SOFT* handling, if these routines need to sleep.
2001-01-24 09:34:26 +00:00