Commit Graph

157122 Commits

Author SHA1 Message Date
drochner
7767c569f2 Make the attach functions for real and pseudo devices share as much code
as possible. For that, split out a function which does the allocation
of a softc (without linking it into global structures) and a function
which inserts the device into the global alldevs lists and the per-driver
cd_devs.
There is a little semantic change involved: the pseudo-device code didn't
interpret FSTATE_STAR as such, for no good reason. This looks harmless;
I'll modify driver frontends as I find ways to test.
Get config_makeroom() out of the public namespace - that's clearly an
internal of autoconf which drivers can't be allowed to deal with.
2007-03-05 20:32:43 +00:00
he
068d2b32bc Use char* for pointer arithmetic. 2007-03-05 20:30:09 +00:00
ad
0261e46854 - proc_unstop: adjust p_nrlwps correctly. Should fix PR kern/35657.
- LOCK_ASSERT -> KASSERT
- Update a couple of comments.
2007-03-05 20:29:14 +00:00
he
3ba91b0595 Propagate volatile-ness from g_fbkva or g_regkva etc. as best as possible.
Some uses of __UNVOLATILE(), either in preparation of calls to bcopy()
or in the invocations themselves.
2007-03-05 20:29:07 +00:00
drochner
d152127c07 replace the code which digs in the guts of autoconf. It is not obvious
what it does; use some code from btuart(4) which might be for a
similar purpose.
XXX This is very definitely broken; when I understand how this is
supposed to work and how it can be tested I'll have another look at it.
2007-03-05 20:23:14 +00:00
he
9b5b94d987 Cast to char* before doing pointer arithmetic. 2007-03-05 20:00:00 +00:00
he
8ecc297897 Do pointer arithmetic on char* or u_char* pointers. 2007-03-05 19:58:43 +00:00
he
8247f5f1d2 Make the various graphics card drivers compile again.
Use casts to char* before pointer arithmetic.
Try to preserve `volatile' qualification where possible, though
uses of kvtop(), strcpy(), copyin() and copyout() gain an unfortunate
but probably unavoidable __UNVOLATILE().
Correct various instances of "void *ba, fb" to have * in front of fb as well.
Remove some redundant parenthesis pairs in some of the vga* macros.
2007-03-05 19:48:19 +00:00
plunky
162ec75621 return ENOPROTOOPT when protocol options are not known 2007-03-05 19:11:54 +00:00
plunky
070f41d51b whitespace 2007-03-05 19:05:57 +00:00
plunky
78a5a02263 add extra validity check for inbound requests 2007-03-05 19:04:46 +00:00
plunky
904dc39982 remove extraneous prototype 2007-03-05 19:02:47 +00:00
he
b5a6705297 Fix one missing indirection causing a type conflict, and use char* for
pointer arithmetic.
2007-03-05 18:46:41 +00:00
he
51b20dc64d Use char* for pointer arithmetic. 2007-03-05 18:43:30 +00:00
he
d6887d96f0 Fix one missing indirection causing a type conflict, and use char* for
pointer arithmetic.
2007-03-05 18:35:58 +00:00
he
38678ed9a1 Use char* for pointer arithmetic. 2007-03-05 18:33:34 +00:00
he
9c1c8a7683 Use char*, not void* for pointer arithmetic. 2007-03-05 18:25:29 +00:00
matt
398339900b Use uint8_t * for pointer arith with mbuf data 2007-03-05 18:21:59 +00:00
he
8ed0e0b4a6 Follow Izumi Tsutsui's advice, and use uint8_t* rather than char*. 2007-03-05 18:06:09 +00:00
he
002b93be68 Cast to char* before doing pointer arithmetic. 2007-03-05 17:55:19 +00:00
he
6f4945e435 Do some casts via paddr_t and void* to compute address of msgbuf and
pass it to initmsgbuf().
2007-03-05 17:52:26 +00:00
he
05029883f8 Use a char* variable for doing pointer arithmetic with. 2007-03-05 17:47:49 +00:00
he
b2898f296c Add two more ioctl values which are the same. 2007-03-05 17:38:25 +00:00
he
7a89811338 Cast to char* before doing pointer arithmetic. 2007-03-05 17:37:06 +00:00
tnozaki
b9412befd1 fix koi8-c mapping. 2007-03-05 17:06:18 +00:00
tnozaki
1bf1d71e3c iconv: add following CCS/CES support.
- CNS11643-[3-7] <-> UCS:BMP/SIP (EUC-TW, ISO-2022-CN-EXT)
- HKSCS <-> UCS:BMP/SIP (Big5-HKSCS)
- JISX0213-[1-2] <-> UCS:BMP/SIP (EUC-JIS-2004,Shift_JIS-2004,ISO-2022-JP-2004)
2007-03-05 16:57:06 +00:00
drochner
d880082522 clean up how cpus and ioapics are attached at the mainbus:
Seperate "cpubus" and "ioapicbus" -- while they share a common "address
space" (the apic id), the kernel doesn't use this fact. There are different
data passed to cpus and apics, which caused some ugly polymorphism. This
also saves the special "submatch" functions needed to distingush cpus
and ioapics for autoconf. (And it makes that "apid" locators wired
in the kernel configuration are honored now; this allows one to dumb down
an mp box to singleprocessor by userconfig.)
Print "apid" locators in the buses "print" function "as everyone does",
so the per-port cpu drivers don't need to do it.
Being here, constify "struct cpu_functions" and g/c the unused MP_PICMODE
flag.
2007-03-05 16:50:59 +00:00
he
8485493114 Cast to char* before doing pointer arithmetic. 2007-03-05 16:41:03 +00:00
he
f216f1649f Cast to char* before pointer arithmetic. 2007-03-05 16:39:21 +00:00
drochner
9916a76d2e It was probably not a good idea to put that scroll stuff to accessops.
But now that it is there, keep it from crashing the box if there is
no valid focus screen.
2007-03-05 16:06:52 +00:00
he
5d3a459b83 Use a local variable of the appropriate type, assign from argument,
and get rid of some casts as a bonus, following caddr_t removal.
2007-03-05 15:55:19 +00:00
he
2d94cf729d Add a couple of casts to char* before doing pointer arithmetic. 2007-03-05 15:42:23 +00:00
he
ac662e9e5f Remove an unneeded addition of 0 to what is now a void*. 2007-03-05 15:40:28 +00:00
he
b4a156898e Need some casts to char* for pointer arithmetic, following caddr_t removal. 2007-03-05 15:36:26 +00:00
he
23e49d8fa8 Need char* for pointer arithmetic done in iwm_fd.c. 2007-03-05 15:32:33 +00:00
he
08cd807f1c Need char* for pointer arithmetic and array indexing. 2007-03-05 15:29:13 +00:00
tsutsui
f29951d982 Fix caddr_t fallout. Well, this driver is too ugly to read... 2007-03-05 15:05:24 +00:00
he
fdcc1ff67a We need char* for pointer arithmetic. 2007-03-05 14:49:04 +00:00
tsutsui
90b5f236a9 Use (char *) on pointer arith. 2007-03-05 14:31:08 +00:00
xtraeme
da8fba5413 die caddr_t, die. 2007-03-05 14:30:16 +00:00
christos
fd0949947b more caddr_t lossage. 2007-03-05 14:27:38 +00:00
christos
033371b01a fix caddr_t lossage 2007-03-05 14:24:18 +00:00
christos
c74f0279ea more caddr_t lossage. 2007-03-05 14:13:10 +00:00
he
1564bbc49c Need a char* for doing pointer arithmetic. 2007-03-05 13:56:24 +00:00
tsutsui
0092fa7c2d MI softintr(9)'fy. Untested.
This port needs much more cleanups, it seems...
2007-03-05 13:06:43 +00:00
tsutsui
d5a5c6095d Allocate msgbufaddr in pmap_bootstrap.c where it's initilized,
and move its declaration into <m68k/pmap_motorola.h>.
2007-03-05 12:50:15 +00:00
tsutsui
2735750cca Add (char *) casts on pointer arith. 2007-03-05 12:37:53 +00:00
tsutsui
980acc7d7b Remove an unnecessary cast and use (char *) on pointer arith. 2007-03-05 12:30:37 +00:00
tsutsui
cdfa69a5f8 - add missed '*'
- vmmap is (char *) in pmap_motorola.h
2007-03-05 12:26:55 +00:00
tsutsui
6dd319dcc5 Use (char *) cast on pointer arith. 2007-03-05 10:50:24 +00:00