199767f8919635c4928607450d9e0abb932109ceToomas Soome * Copyright (c) 1998 Robert Nordier
199767f8919635c4928607450d9e0abb932109ceToomas Soome * All rights reserved.
199767f8919635c4928607450d9e0abb932109ceToomas Soome * Redistribution and use in source and binary forms are freely
199767f8919635c4928607450d9e0abb932109ceToomas Soome * permitted provided that the above copyright notice and this
199767f8919635c4928607450d9e0abb932109ceToomas Soome * paragraph and the following disclaimer are duplicated in all
199767f8919635c4928607450d9e0abb932109ceToomas Soome * such forms.
199767f8919635c4928607450d9e0abb932109ceToomas Soome * This software is provided "AS IS" and without any express or
199767f8919635c4928607450d9e0abb932109ceToomas Soome * implied warranties, including, without limitation, the implied
199767f8919635c4928607450d9e0abb932109ceToomas Soome * warranties of merchantability and fitness for a particular
199767f8919635c4928607450d9e0abb932109ceToomas Soome#define V86_ADDR 0x10000 /* Segment:offset address */
199767f8919635c4928607450d9e0abb932109ceToomas Soome#define V86_CALLF 0x20000 /* Emulate far call */
199767f8919635c4928607450d9e0abb932109ceToomas Soome uint32_t addr; /* Interrupt number or address */
199767f8919635c4928607450d9e0abb932109ceToomas Soomeextern struct __v86 __v86; /* V86 interface structure */
199767f8919635c4928607450d9e0abb932109ceToomas Soome#define VTOPSEG(va) (u_int16_t)(VTOP((caddr_t)va) >> 4)
199767f8919635c4928607450d9e0abb932109ceToomas Soome#define VTOPOFF(va) (u_int16_t)(VTOP((caddr_t)va) & 0xf)
199767f8919635c4928607450d9e0abb932109ceToomas Soome#endif /* !_BTXV86_H_ */