2 * Mesa 3-D graphics library
5 * Copyright (C) 1999 Brian Paul All Rights Reserved.
7 * Permission is hereby granted, free of charge, to any person obtaining a
8 * copy of this software and associated documentation files (the "Software"),
9 * to deal in the Software without restriction, including without limitation
10 * the rights to use, copy, modify, merge, publish, distribute, sublicense,
11 * and/or sell copies of the Software, and to permit persons to whom the
12 * Software is furnished to do so, subject to the following conditions:
14 * The above copyright notice and this permission notice shall be included
15 * in all copies or substantial portions of the Software.
17 * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS
18 * OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
19 * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL
20 * BRIAN PAUL BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN
21 * AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN
22 * CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
26 * DOS/DJGPP device driver v1.1 for Mesa 4.0
28 * Copyright (C) 2002 - Borca Daniel
29 * Email : dborca@yahoo.com
30 * Web : http://www.geocities.com/dborca
37 * extern word32 vl_hw_granularity;
38 * extern int vl_video_selector;
39 * extern int vl_current_offset, vl_current_delta;
45 * void v_clear16 (void *buffer, int bytes, int color);
57 * void v_clear32 (void *buffer, int bytes, int color);
77 * void v_clear24 (void *buffer, int bytes, int color);
83 movl $0xaaaaaaab, %eax
102 * void b_dump_virtual (void *buffer, int stride, int height);
105 .global _b_dump_virtual
111 movl _vl_video_selector, %fs
112 movl 4*4+4+0(%esp), %esi
113 movl _vl_hw_granularity, %ebp
115 movl _vl_current_offset, %eax
123 movl _vl_current_delta, %ebx
124 movl 5*4+4+4(%esp), %ecx
125 movl 5*4+4+8(%esp), %edx
147 movl %eax, %fs:(%edi)
163 * void l_dump_virtual (void *buffer, int stride, int height);
166 .global _l_dump_virtual
171 movl _vl_video_selector, %fs
172 movl 3*4+4+0(%esp), %esi
173 movl _vl_current_offset, %edi
174 movl 3*4+4+4(%esp), %ecx
175 movl 3*4+4+8(%esp), %edx
176 movl _vl_current_delta, %ebx
185 movl %eax, %fs:(%edi)
199 * void v_putpixel16 (void *buffer, int offset, int color);
202 .global _v_putpixel16
212 * void v_putpixel24 (void *buffer, int offset, int color);
215 .global _v_putpixel24
218 leal (%edx, %edx, 2), %edx
227 * void v_putpixel32 (void *buffer, int offset, int color);
230 .global _v_putpixel32