|
|
1.1 root 1: /*
2: * Copyright (c) 1998-2000 Apple Computer, Inc. All rights reserved.
3: *
4: * @APPLE_LICENSE_HEADER_START@
5: *
6: * The contents of this file constitute Original Code as defined in and
7: * are subject to the Apple Public Source License Version 1.1 (the
8: * "License"). You may not use this file except in compliance with the
9: * License. Please obtain a copy of the License at
10: * http://www.apple.com/publicsource and read it before using this file.
11: *
12: * This Original Code and all software distributed under the License are
13: * distributed on an "AS IS" basis, WITHOUT WARRANTY OF ANY KIND, EITHER
14: * EXPRESS OR IMPLIED, AND APPLE HEREBY DISCLAIMS ALL SUCH WARRANTIES,
15: * INCLUDING WITHOUT LIMITATION, ANY WARRANTIES OF MERCHANTABILITY,
16: * FITNESS FOR A PARTICULAR PURPOSE OR NON-INFRINGEMENT. Please see the
17: * License for the specific language governing rights and limitations
18: * under the License.
19: *
20: * @APPLE_LICENSE_HEADER_END@
21: */
22: void setupCursor( IOPixelInformation * info );
23: void stopCursor( void );
24: IOReturn doSetup( bool full );
25: IOReturn createSharedCursor( int shmemVersion,
26: int maxWidth, int maxHeight );
27: IOReturn setBoundingRect( Bounds * bounds );
28: IOReturn setUserRanges( void );
29: IOReturn getConnectFlagsForDisplayMode(
30: IODisplayModeID mode, IOIndex connection, UInt32 * flags );
31: IOReturn extGetDisplayModeCount( IOItemCount * count );
32: IOReturn extGetDisplayModes( IODisplayModeID * allModes,
33: IOByteCount * size );
34: IOReturn extSetDisplayMode( IODisplayModeID displayMode,
35: IOIndex depth );
36: IOReturn extGetInformationForDisplayMode(
37: IODisplayModeID mode, IODisplayModeInformation * info );
38:
39: IOReturn extGetVRAMMapOffset( IOPixelAperture aperture,
40: IOByteCount * offset );
41: IOReturn extSetBounds( Bounds * bounds );
42:
43: IOReturn extSetNewCursor( void * cursor, IOIndex frame,
44: IOOptionBits options );
45: IOReturn extSetCursorVisible( bool visible );
46: IOReturn extSetCursorPosition( SInt32 x, SInt32 y );
47: IOReturn extSetColorConvertTable( UInt32 select,
48: UInt8 * data, IOByteCount length );
49: IOReturn extSetCLUTWithEntries( UInt32 index, IOOptionBits options,
50: IOColorEntry * colors, IOByteCount inputCount );
51: IOReturn makeModeList( void );
52: IOReturn getDefaultMode( IOIndex connection, IODisplayModeID * mode,
53: IOIndex * depth);
54:
55: static inline void StdFBDisplayCursor( IOFramebuffer * inst );
56: static inline void StdFBRemoveCursor( IOFramebuffer * inst );
57: static inline void RemoveCursor( IOFramebuffer * inst );
58: static inline void DisplayCursor( IOFramebuffer * inst );
59: static inline void SysHideCursor( IOFramebuffer * inst );
60: static inline void SysShowCursor( IOFramebuffer * inst );
61: static inline void CheckShield( IOFramebuffer * inst );
62:
63: static void StdFBDisplayCursor8P(
64: IOFramebuffer * inst,
65: StdFBShmem_t *shmem,
66: volatile unsigned char *vramPtr,
67: unsigned int cursStart,
68: unsigned int vramRow,
69: unsigned int cursRow,
70: int width,
71: int height );
72:
73: static void StdFBDisplayCursor8G(
74: IOFramebuffer * inst,
75: StdFBShmem_t *shmem,
76: volatile unsigned char *vramPtr,
77: unsigned int cursStart,
78: unsigned int vramRow,
79: unsigned int cursRow,
80: int width,
81: int height );
82:
83: static void StdFBDisplayCursor555(
84: IOFramebuffer * inst,
85: StdFBShmem_t *shmem,
86: volatile unsigned short *vramPtr,
87: unsigned int cursStart,
88: unsigned int vramRow,
89: unsigned int cursRow,
90: int width,
91: int height );
92:
93: static void StdFBDisplayCursor444(
94: IOFramebuffer * inst,
95: StdFBShmem_t *shmem,
96: volatile unsigned short *vramPtr,
97: unsigned int cursStart,
98: unsigned int vramRow,
99: unsigned int cursRow,
100: int width,
101: int height );
102:
103: static void StdFBDisplayCursor32Axxx(
104: IOFramebuffer * inst,
105: StdFBShmem_t *shmem,
106: volatile unsigned int *vramPtr,
107: unsigned int cursStart,
108: unsigned int vramRow,
109: unsigned int cursRow,
110: int width,
111: int height );
112:
113: static void StdFBDisplayCursor32xxxA(
114: IOFramebuffer * inst,
115: StdFBShmem_t *shmem,
116: volatile unsigned int *vramPtr,
117: unsigned int cursStart,
118: unsigned int vramRow,
119: unsigned int cursRow,
120: int width,
121: int height );
122:
123: static void StdFBRemoveCursor8(
124: IOFramebuffer * inst,
125: StdFBShmem_t *shmem,
126: volatile unsigned char *vramPtr,
127: unsigned int vramRow,
128: int width,
129: int height );
130: static void StdFBRemoveCursor16(
131: IOFramebuffer * inst,
132: StdFBShmem_t *shmem,
133: volatile unsigned short *vramPtr,
134: unsigned int vramRow,
135: int width,
136: int height );
137:
138: static void StdFBRemoveCursor32(
139: IOFramebuffer * inst,
140: StdFBShmem_t *shmem,
141: volatile unsigned int *vramPtr,
142: unsigned int vramRow,
143: int width,
144: int height );
145:
146: static void deferredMoveCursor(IOFramebuffer * inst, void * ref);
This archive runs on limited infrastructure. Preserving old code on modern bandwidth. Automated agents are requested to crawl responsibly.