summaryrefslogtreecommitdiff
path: root/sys/arch/hpcmips/dev
AgeCommit message (Collapse)Author
2004-01-04Spell controller with two ls. Inspired by miod@openbsd.wiz
2003-12-27Initialized variables and added error handling in mq200_pllparam().takemura
2003-11-13eliminate uvm_useracc() in favor of checking the return value ofchs
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-10Spell address with two d's. Inspired by similar changes in OpenBSD,wiz
originating from Jonathon Gray and forwarded by jmc@openbsd.
2003-11-07Set `reg' before using it to print the unrecognized value.he
2003-10-25Eliminate nested functions.mycroft
(There are a billion better ways to abstract this...)
2003-10-25Fix typo.mycroft
2003-10-25Token-pasting nits for GCC 3.mycroft
2003-10-04The Mobile Pro 780 is the same as the MobileGear II MC/R530. In fact,imp
its platform code is R530A. As such, the external video patches for the R530 work for the '780. This gives a 640x480 video out (but only the middle 240 pixels are used, to match the lcd resolution) on the console and in X11.
2003-09-26Cast through (void *) to appease gcc3.simonb
2003-09-26Don't have a label as the last part of a compound statement (fixes asimonb
gcc331 warning).
2003-07-15__KERNEL_RCSID()lukem
2003-06-14Also pass a type argument to comcnattach() and com_kgdb_attach().thorpej
comspeed() (and thus cominit()) may need this information.
2003-01-03Added new ioctl command, WSMOUSEIO_GETID to tell touch panel identifiertakemura
for tpctl(8).
2003-01-01Use aprint_normal() for cfprint routines.thorpej
2002-11-26si_ -> sel_christos
2002-11-06Fix typo. Reported by Jolan Luff in PR 18952.wiz
2002-10-23merge kqueue branch into -currentjdolecek
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-14Battery status should be represented in APM 1.0 style.takemura
2002-10-14Moved MI APM definitions into dev/apm.takemura
2002-10-10replace empty ucbsndioctl()/ucbsndmmap() with nullioctl()/nullmmap()jdolecek
2002-10-10replace the somewhat strange poll routine with standard nopoll() (a.k.ajdolecek
seltrue())
2002-10-02Add trailing ; to CFATTACH_DECLthorpej
2002-10-02Use CFATTACH_DECL().thorpej
2002-10-01Use CFATTACH_DECL().thorpej
2002-09-27Declare all cfattach structures const.thorpej
2002-09-27remove trailing \n in panic(). approved perry.provos
2002-09-27Introduce a new routine, config_match(), which invokes thethorpej
cfattach->ca_match function in behalf of the caller. Use it rather than invoking cfattach->ca_match directly.
2002-09-25Don't include <sys/map.h>.thorpej
2002-09-06Merge the gehenna-devsw branch into the trunk.gehenna
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-08-06integer overflow. from silvio@qualys.comitojun
2002-06-08constify.yamt
2002-06-08make auto const variables static.yamt
(and space->tab)
2002-06-01SIMPLEQ rototill:lukem
- 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-05-12BUGFIX: SigmarionII can't resume.takemura
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-11Just deleted junk lines.takemura
2002-05-11BUGFIX: Xhpc dumps core on SigmarionII.takemura
Attached MQ200 video controller at PCI bus.
2002-05-03Fixed debug print.takemura
2002-04-14Added bus probing to avoid bus error.takemura
2002-04-14Fixed 8bpp problem of mq200.takemura
2002-04-13Fixed dev/hpc/hpcfb.c to set RI_BSWAP flag in 8bpp for rasops8.ctakemura
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-03-17Convert ioctl code to use EPASSTHROUGH instead of -1 or ENOTTY foratatat
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-06don't attach bivideo.uch
2002-02-19fix LCD byte-order setting.uch
2002-02-11Added vr4122ip.takemura
2002-01-29clean up debug print and configuration.uch
2002-01-27Don't call tx39power_suspend_cpu unless the CPU is TX.takemura
2002-01-05Deleted verbose error message in probe routine to probe silently.takemura
2002-01-04Renamed sg2com -> com_hpcio. Now it seems to be working on SigmarionII.takemura
2001-12-30BUGFIX: It allocated only 44 bytes for hpcapm while the device neededtakemura
764 bytes. it was really terrible.