xfree86: vbe: drop unused VBEGetVBEpmi()
Not used anywhere, so no need to keep it around any longer. Signed-off-by: Enrico Weigelt, metux IT consult <info@metux.net>
This commit is contained in:
parent
9680128539
commit
c5660ba20b
|
@ -814,42 +814,6 @@ VBESetGetPaletteData(vbeInfoPtr pVbe, Bool set, int first, int num,
|
|||
return data;
|
||||
}
|
||||
|
||||
VBEpmi *
|
||||
VBEGetVBEpmi(vbeInfoPtr pVbe)
|
||||
{
|
||||
VBEpmi *pmi;
|
||||
|
||||
/*
|
||||
Input:
|
||||
AH := 4Fh Super VGA support
|
||||
AL := 0Ah Protected Mode Interface
|
||||
BL := 00h Return Protected Mode Table
|
||||
|
||||
Output:
|
||||
AX := Status
|
||||
ES := Real Mode Segment of Table
|
||||
DI := Offset of Table
|
||||
CX := Length of Table including protected mode code in bytes (for copying purposes)
|
||||
(All other registers are preserved)
|
||||
*/
|
||||
|
||||
pVbe->pInt10->num = 0x10;
|
||||
pVbe->pInt10->ax = 0x4f0a;
|
||||
pVbe->pInt10->bx = 0;
|
||||
pVbe->pInt10->di = 0;
|
||||
xf86ExecX86int10(pVbe->pInt10);
|
||||
|
||||
if (R16(pVbe->pInt10->ax) != 0x4f)
|
||||
return NULL;
|
||||
|
||||
pmi = malloc(sizeof(VBEpmi));
|
||||
pmi->seg_tbl = R16(pVbe->pInt10->es);
|
||||
pmi->tbl_off = R16(pVbe->pInt10->di);
|
||||
pmi->tbl_len = R16(pVbe->pInt10->cx);
|
||||
|
||||
return pmi;
|
||||
}
|
||||
|
||||
#if 0
|
||||
vbeModeInfoPtr
|
||||
VBEBuildVbeModeList(vbeInfoPtr pVbe, VbeInfoBlock * vbe)
|
||||
|
|
|
@ -302,8 +302,6 @@ typedef struct _VBEpmi {
|
|||
int tbl_len;
|
||||
} VBEpmi;
|
||||
|
||||
extern _X_EXPORT VBEpmi *VBEGetVBEpmi(vbeInfoPtr pVbe);
|
||||
|
||||
#define VESAFreeVBEpmi(pmi) free(pmi)
|
||||
|
||||
/* high level helper functions */
|
||||
|
|
Loading…
Reference in New Issue