| @@ -1,14 +1,14 @@ | | | @@ -1,14 +1,14 @@ |
1 | /* $NetBSD: crime_cursor.c,v 1.2 2009/06/25 00:58:46 macallan Exp $ */ | | 1 | /* $NetBSD: crime_cursor.c,v 1.3 2011/05/20 01:49:48 christos Exp $ */ |
2 | /* | | 2 | /* |
3 | * Copyright (c) 2008 Michael Lorenz | | 3 | * Copyright (c) 2008 Michael Lorenz |
4 | * All rights reserved. | | 4 | * All rights reserved. |
5 | * | | 5 | * |
6 | * Redistribution and use in source and binary forms, with or without | | 6 | * Redistribution and use in source and binary forms, with or without |
7 | * modification, are permitted provided that the following conditions | | 7 | * modification, are permitted provided that the following conditions |
8 | * are met: | | 8 | * are met: |
9 | * | | 9 | * |
10 | * - Redistributions of source code must retain the above copyright | | 10 | * - Redistributions of source code must retain the above copyright |
11 | * notice, this list of conditions and the following disclaimer. | | 11 | * notice, this list of conditions and the following disclaimer. |
12 | * - Redistributions in binary form must reproduce the above | | 12 | * - Redistributions in binary form must reproduce the above |
13 | * copyright notice, this list of conditions and the following | | 13 | * copyright notice, this list of conditions and the following |
14 | * disclaimer in the documentation and/or other materials provided | | 14 | * disclaimer in the documentation and/or other materials provided |
| @@ -30,26 +30,27 @@ | | | @@ -30,26 +30,27 @@ |
30 | */ | | 30 | */ |
31 | | | 31 | |
32 | /* | | 32 | /* |
33 | * Based on fbdev.c written by: | | 33 | * Based on fbdev.c written by: |
34 | * | | 34 | * |
35 | * Authors: Alan Hourihane, <alanh@fairlite.demon.co.uk> | | 35 | * Authors: Alan Hourihane, <alanh@fairlite.demon.co.uk> |
36 | * Michel Dänzer, <michdaen@iiic.ethz.ch> | | 36 | * Michel Dänzer, <michdaen@iiic.ethz.ch> |
37 | */ | | 37 | */ |
38 | | | 38 | |
39 | #include <fcntl.h> | | 39 | #include <fcntl.h> |
40 | #include <sys/types.h> | | 40 | #include <sys/types.h> |
41 | #include <sys/time.h> | | 41 | #include <sys/time.h> |
42 | #include <sys/endian.h> | | 42 | #include <sys/endian.h> |
| | | 43 | #include <sys/ioctl.h> |
43 | #include <dev/wscons/wsconsio.h> | | 44 | #include <dev/wscons/wsconsio.h> |
44 | #include <errno.h> | | 45 | #include <errno.h> |
45 | | | 46 | |
46 | /* all driver need this */ | | 47 | /* all driver need this */ |
47 | #include "xf86.h" | | 48 | #include "xf86.h" |
48 | #include "xf86_OSproc.h" | | 49 | #include "xf86_OSproc.h" |
49 | | | 50 | |
50 | #include "crime.h" | | 51 | #include "crime.h" |
51 | | | 52 | |
52 | static void CrimeLoadCursorImage(ScrnInfoPtr pScrn, unsigned char *src); | | 53 | static void CrimeLoadCursorImage(ScrnInfoPtr pScrn, unsigned char *src); |
53 | static void CrimeSetCursorPosition(ScrnInfoPtr pScrn, int x, int y); | | 54 | static void CrimeSetCursorPosition(ScrnInfoPtr pScrn, int x, int y); |
54 | static void CrimeSetCursorColors(ScrnInfoPtr pScrn, int bg, int fg); | | 55 | static void CrimeSetCursorColors(ScrnInfoPtr pScrn, int bg, int fg); |
55 | | | 56 | |