2 Copyright © 1995-2006, The AROS Development Team. All rights reserved.
5 Desc: vga gfx Hidd for standalone i386 AROS
9 #define __OOP_NOATTRBASES__
11 #include <exec/types.h>
12 #include <exec/lists.h>
13 #include <proto/exec.h>
14 #include <proto/oop.h>
16 #include <utility/utility.h>
17 #include <aros/symbolsets.h>
22 #include LC_LIBDEFS_FILE
24 extern struct vgaModeDesc vgaDefMode
[];
29 #include <aros/debug.h>
31 static OOP_AttrBase HiddPixFmtAttrBase
; // = 0;
33 static struct OOP_ABDescr abd
[] = {
34 { IID_Hidd_PixFmt
, &HiddPixFmtAttrBase
},
38 static int PCVGA_Init(LIBBASETYPEPTR LIBBASE
)
40 struct vga_staticdata
*xsd
= &LIBBASE
->vsd
;
41 struct vgaModeEntry
*entry
;
44 InitSemaphore(&xsd
->sema
);
45 InitSemaphore(&xsd
->HW_acc
);
46 NEWLIST(&xsd
->modelist
);
48 if (!OOP_ObtainAttrBases(abd
))
51 /* Insert default videomodes */
53 for (i
=0; i
<NUM_MODES
; i
++)
55 entry
= AllocMem(sizeof(struct vgaModeEntry
),MEMF_CLEAR
|MEMF_PUBLIC
);
58 entry
->Desc
=&(vgaDefMode
[i
]);
59 ADDHEAD(&xsd
->modelist
,entry
);
60 D(bug("Added default mode: %s\n", entry
->Desc
->name
));
67 ADD2INITLIB(PCVGA_Init
, 0)