dyoung
c1b390d493
A pointer typedef entails trading too much flexibility to declare const
...
and non-const types, and the kernel uses both const and non-const
PMF qualifiers and device suspensors, so change the pmf_qual_t and
device_suspensor_t typedefs from "pointers to const" to non-pointer,
non-const types.
2010-02-24 22:37:54 +00:00
dyoung
cd6e1fbf91
Expand PMF_FN_* macros.
2010-01-08 19:53:10 +00:00
rmind
dbd9b86792
Remove some unecessary includes sys/user.h header.
2009-11-23 02:13:44 +00:00
uwe
fd239c627a
Register with pmf(9). Thus we register with both dopowerhooks(9) and
...
pmf(9), but they are mutually exclusive (apm(4) vs apmdev(4)).
Express pmf(9) hooks in terms of dopowerhooks(9) hook - the reverse
would be more natural, but pmf hook signature is hidden behind
PMF_FN_ARGS/PMF_FN_CALL, so just go the least intrusive way for now.
2009-04-05 02:14:41 +00:00
uwe
12a9718711
Split device_t and softc.
2009-04-05 01:48:47 +00:00
dsl
82357f6d42
ANSIfy another 1261 function definitions.
...
The only ones left in sys are beyond by sed script!
(or in sys/dist or sys/external)
Mostly they have function pointer parameters.
2009-03-14 21:04:01 +00:00
cegger
0e50a9464d
use aprint_*_dev and device_xname
2008-04-06 20:25:59 +00:00
ad
549e8ec8b9
Has this compiled recently?
2008-01-30 14:12:20 +00:00
ad
0664a0459b
Start detangling lock.h from intr.h. This is likely to cause short term
...
breakage, but the mess of dependencies has been regularly breaking the
build recently anyhow.
2008-01-04 21:17:40 +00:00
peter
9bc22ed904
wsdisplay has been converted to device_t/softc separation so we can't cast
...
the wsdisplay device to the wsdisplay_softc anymore. Use device_private()
instead to get the softc.
2007-10-29 20:45:57 +00:00
ad
a2a3828545
machine/{bus,cpu,intr}.h -> sys/{bus,cpu,intr}.h
2007-10-19 11:59:34 +00:00
ad
88ab7da936
Merge some of the less invasive changes from the vmlocking branch:
...
- kthread, callout, devsw API changes
- select()/poll() improvements
- miscellaneous MT safety improvements
2007-07-09 20:51:58 +00:00
christos
53524e44ef
Kill caddr_t; there will be some MI fallout, but it will be fixed shortly.
2007-03-04 05:59:00 +00:00
christos
168cd830d2
__unused removal on arguments; approved by core.
2006-11-16 01:32:37 +00:00
uwe
44b3507820
-Wextra fixes
2006-10-12 21:19:13 +00:00
peter
9eddf38521
Remove (the default) #define XXXDEBUG and add the options to the relevant
...
files.xxx file.
2006-10-09 10:33:42 +00:00
jmcneill
f135e0d607
Add "name" parameter to powerhook_establish, to aid debugging. No objections
...
on tech-kern@
2006-09-24 03:53:07 +00:00
jmmv
7a51d4dddc
Add an extra cookie to the ioctl and mmap wsdisplay accessops that points
...
to the screen on which they are being called. The driver cannot guess
this by itself but it is needed to implement, at least, the getwschar and
putwschar functions in the correct place. There are no functional changes
yet.
Tested on i386 (vga, vga_raster, machfb, vesafb), macppc and sparc64.
Suggested and reviewed by macallan@.
2006-04-12 19:38:22 +00:00
thorpej
92c7bba3df
Use device_private().
2006-03-29 06:28:38 +00:00
christos
95e1ffb156
merge ktrace-lwp.
2005-12-11 12:16:03 +00:00
uwe
81bf6b30a3
For HPCFB_CLASS_RGBCOLOR class propagate r/g/b widths and positions
...
from hf_rgb to rasops_info.
2005-09-04 00:54:42 +00:00
christos
7cdea212c0
No 0x in front of %p...
2005-05-22 15:54:45 +00:00
perry
f31bd063e9
nuke trailing whitespace
2005-02-27 00:26:58 +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
thorpej
72a7af27b0
Use aprint_normal() in cfprint routines.
2003-01-01 00:10:15 +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
71404bb533
Don't include <sys/map.h>.
2002-09-25 22:21:01 +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
c061e3c249
Use symbolic WSCOL_* colour names instead of magic numbers.
2002-05-10 22:01:13 +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
takemura
345bbe4615
Do nothing if there is no screen.
2002-01-27 11:08:30 +00:00
tsutsui
c12b5c180d
Call malloc(9) with M_ZERO flag instead of memset() after malloc().
2002-01-12 16:41:02 +00:00
lukem
b84f53efc5
add RCSID
2001-11-13 12:47:33 +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
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
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
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
03e1c3aa16
implement HPCFB_SWAP_BYTE.
2001-06-05 17:29:12 +00:00
uch
859a6a49b2
ANSI KNF.
2001-06-04 18:59:31 +00:00