/shark/trunk/include/drivers/gd.h |
---|
20,11 → 20,11 |
/** |
------------ |
CVS : $Id: gd.h,v 1.2 2003-02-28 12:05:44 pj Exp $ |
CVS : $Id: gd.h,v 1.3 2003-03-13 13:38:28 pj Exp $ |
File: $File$ |
Revision: $Revision: 1.2 $ |
Last update: $Date: 2003-02-28 12:05:44 $ |
Revision: $Revision: 1.3 $ |
Last update: $Date: 2003-03-13 13:38:28 $ |
------------ |
**/ |
54,7 → 54,10 |
#include <ll/sys/types.h> |
/* Std 16 colors... are in cons.h !!!*/ |
#include <ll/i386/cons.h> |
#include "ll/sys/cdefs.h" |
__BEGIN_DECLS |
/* 15bpp, 16bpp, 24bpp and 32bpp colors... */ |
#define color15(r, g, b) (((WORD)(r & 0x1F) << 10) | ((WORD)(g & 0x1F) << 5) | ((WORD)(b & 0x1F))) |
#define color16(r, g, b) (((WORD)(r & 0x1F) << 11) | ((WORD)(g & 0x3F) << 5) | ((WORD)(b & 0x1F))) |
100,4 → 103,6 |
void gd_setcolor(BYTE ind,BYTE r,BYTE g,BYTE b); |
void gd_getpalette(BYTE start, BYTE num, BYTE *pal); |
void gd_setpalette(BYTE start, BYTE num, BYTE *pal); |
__END_DECLS |
#endif |
/shark/trunk/include/drivers/pxc.h |
---|
20,11 → 20,11 |
/** |
------------ |
CVS : $Id: pxc.h,v 1.1.1.1 2002-03-29 14:12:51 pj Exp $ |
CVS : $Id: pxc.h,v 1.2 2003-03-13 13:38:28 pj Exp $ |
File: $File$ |
Revision: $Revision: 1.1.1.1 $ |
Last update: $Date: 2002-03-29 14:12:51 $ |
Revision: $Revision: 1.2 $ |
Last update: $Date: 2003-03-13 13:38:28 $ |
------------ |
**/ |
75,6 → 75,10 |
#include <kernel/types.h> |
#include <modules/cabs.h> |
#include "ll/sys/cdefs.h" |
__BEGIN_DECLS |
// Definizione degli indirizzi di comando della scheda , relativamente |
// a quelli direttamente impiegati |
189,5 → 193,5 |
CAB PXC_GetCab(void); |
__END_DECLS |
#endif |
/shark/trunk/include/drivers/linuxpci.h |
---|
964,6 → 964,9 |
#define PCI_DEVICE_ID_ARK_STINGARK 0xa099 |
#define PCI_DEVICE_ID_ARK_2000MT 0xa0a1 |
#include "ll/sys/cdefs.h" |
__BEGIN_DECLS |
/* |
* The PCI interface treats multi-function devices as independent |
* devices. The slot/function address of each device is encoded |
1076,4 → 1079,5 |
extern const char *pci_strclass (unsigned int class); |
extern const char *pci_strvendor (unsigned int vendor); |
__END_DECLS |
#endif /* LINUX_PCI_H */ |
/shark/trunk/include/drivers/dma.h |
---|
20,11 → 20,11 |
/** |
------------ |
CVS : $Id: dma.h,v 1.1.1.1 2002-03-29 14:12:51 pj Exp $ |
CVS : $Id: dma.h,v 1.2 2003-03-13 13:38:28 pj Exp $ |
File: $File$ |
Revision: $Revision: 1.1.1.1 $ |
Last update: $Date: 2002-03-29 14:12:51 $ |
Revision: $Revision: 1.2 $ |
Last update: $Date: 2003-03-13 13:38:28 $ |
------------ |
**/ |
51,6 → 51,10 |
#ifndef __DRIVERS_DMA_H__ |
#define __DRIVERS_DMA_H__ |
#include "ll/sys/cdefs.h" |
__BEGIN_DECLS |
typedef struct dma_buff{ |
BYTE *p; |
DWORD len; |
82,4 → 86,5 |
int infun(struct dma_buff *b); |
int outfun(struct dma_buff *b); |
__END_DECLS |
#endif |
/shark/trunk/include/drivers/llpci.h |
---|
1,3 → 1,6 |
#include "ll/sys/cdefs.h" |
__BEGIN_DECLS |
extern int (*pcibios_read_config_byte) |
(BYTE bus, BYTE dev, BYTE where, BYTE *val); |
extern int (*pcibios_read_config_word) |
15,3 → 18,4 |
int pcibios_find_device(WORD vendor, WORD device, WORD index, BYTE *bus, BYTE *dev); |
int pcibios_init(void); |
int pcibios_present(void); |
__END_DECLS |
/shark/trunk/include/drivers/pci6025e/pci6025e.h |
---|
38,6 → 38,10 |
#include "regconst.h" |
#include "ll/sys/cdefs.h" |
__BEGIN_DECLS |
//#define __REG_DEBUG__ //enable this in debug mode to see |
//configuration registers value |
101,5 → 105,6 |
extern WORD joint_reset, interrupt_a_enable, interrupt_a_ack, |
interrupt_b_enable, interrupt_b_ack, clock_and_fout; |
__END_DECLS |
#endif |
/*End of File: Pci6025e.h*/ |
/shark/trunk/include/drivers/pci6025e/timer.h |
---|
37,7 → 37,10 |
#include <drivers/pci6025e/pci6025e.h> |
#include <drivers/pci6025e/regconst.h> |
#include "ll/sys/cdefs.h" |
__BEGIN_DECLS |
#define C0 0 |
#define C1 1 |
62,5 → 65,7 |
void TIM_bufferedEventCounting(BYTE, BYTE, BYTE, BYTE, DWORD); |
void TIM_timeMeasurement(BYTE, BYTE, BYTE, BYTE, BYTE, DWORD); |
void TIM_bufferedTimeMeasurement(BYTE, BYTE, BYTE, BYTE, DWORD); |
__END_DECLS |
#endif |
/*--------------------------------------------------------------------------*/ |
/shark/trunk/include/drivers/pci6025e/dio_ppi.h |
---|
34,7 → 34,10 |
#define _MY_DIO_H_ |
#include <drivers/pci6025e/pci6025e.h> |
#include "ll/sys/cdefs.h" |
__BEGIN_DECLS |
#define ALL_IN 0x0000 //All 8 STC line in input |
#define ALL_OUT 0x00FF //All 8 STC line in output |
66,5 → 69,7 |
WORD PPI_setConfig(BYTE, BYTE, BYTE, BYTE, BYTE, BYTE); |
WORD PPI_getConfig(BYTE); |
BYTE PPI_getAddress(BYTE); |
__END_DECLS |
#endif |
/*--------------------------------------------------------------------------*/ |
/shark/trunk/include/drivers/pci6025e/dac.h |
---|
33,7 → 33,10 |
#include <drivers/pci6025e/pci6025e.h> |
#include <drivers/pci6025e/regconst.h> |
#include "ll/sys/cdefs.h" |
__BEGIN_DECLS |
#define DAC0 0 |
#define DAC1 1 |
53,5 → 56,7 |
void DAC_Init(void); |
void DAC_output(BYTE, WORD); |
__END_DECLS |
#endif |
/*End of file: DAC.H*/ |
/shark/trunk/include/drivers/glib.h |
---|
20,11 → 20,11 |
/** |
------------ |
CVS : $Id: glib.h,v 1.1.1.1 2002-03-29 14:12:51 pj Exp $ |
CVS : $Id: glib.h,v 1.2 2003-03-13 13:38:28 pj Exp $ |
File: $File$ |
Revision: $Revision: 1.1.1.1 $ |
Last update: $Date: 2002-03-29 14:12:51 $ |
Revision: $Revision: 1.2 $ |
Last update: $Date: 2003-03-13 13:38:28 $ |
------------ |
**/ |
53,7 → 53,10 |
#include <ll/sys/types.h> |
#include <drivers/gd.h> |
#include "ll/sys/cdefs.h" |
__BEGIN_DECLS |
int grx_init(void); |
int grx_setmode(WORD mode); |
int grx_close(void); |
80,4 → 83,6 |
int grx_open(WORD x, WORD y, BYTE depth); |
void grx_clear(DWORD color); |
__END_DECLS |
#endif |
/shark/trunk/include/drivers/parport.h |
---|
44,7 → 44,7 |
* along with this program; if not, write to the Free Software |
* Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA |
* |
* CVS : $Id: parport.h,v 1.2 2003-02-28 12:05:43 pj Exp $ |
* CVS : $Id: parport.h,v 1.3 2003-03-13 13:38:28 pj Exp $ |
*/ |
#include <kernel/kern.h> |
58,8 → 58,11 |
#include <kernel/types.h> |
#include <kernel/descr.h> |
#include <math.h> |
#include "ll/sys/cdefs.h" |
__BEGIN_DECLS |
/* general defs... */ |
#define PP_DEBUG 1 /* 1/0 Activate/Disactive internal debugs... */ |
#define PP_STATS 1 /* 1/0 Activate/Disactive internal statistics... */ |
238,3 → 241,4 |
int ppReadSysMsg(char * buf); |
int ppWriteSysMsg(char * buf, ...); |
__END_DECLS |
/shark/trunk/include/drivers/mouse.h |
---|
20,11 → 20,11 |
/** |
------------ |
CVS : $Id: mouse.h,v 1.1.1.1 2002-03-29 14:12:51 pj Exp $ |
CVS : $Id: mouse.h,v 1.2 2003-03-13 13:38:28 pj Exp $ |
File: $File$ |
Revision: $Revision: 1.1.1.1 $ |
Last update: $Date: 2002-03-29 14:12:51 $ |
Revision: $Revision: 1.2 $ |
Last update: $Date: 2003-03-13 13:38:28 $ |
------------ |
**/ |
31,11 → 31,11 |
/** |
------------ |
CVS : $Id: mouse.h,v 1.1.1.1 2002-03-29 14:12:51 pj Exp $ |
CVS : $Id: mouse.h,v 1.2 2003-03-13 13:38:28 pj Exp $ |
File: $File$ |
Revision: $Revision: 1.1.1.1 $ |
Last update: $Date: 2002-03-29 14:12:51 $ |
Revision: $Revision: 1.2 $ |
Last update: $Date: 2003-03-13 13:38:28 $ |
------------ |
Author: Gerardo Lamastra |
80,6 → 80,10 |
#include <drivers/scom.h> |
#endif |
#include "ll/sys/cdefs.h" |
__BEGIN_DECLS |
/* mouse buttons constant */ |
#define MOUSE_RBUTT 1 |
#define MOUSE_CBUTT 2 |
211,4 → 215,5 |
void (*mouse_on)(void); |
void (*mouse_off)(void); |
__END_DECLS |
#endif |
/shark/trunk/include/drivers/rtc.h |
---|
20,11 → 20,11 |
/** |
------------ |
CVS : $Id: rtc.h,v 1.1.1.1 2002-03-29 14:12:51 pj Exp $ |
CVS : $Id: rtc.h,v 1.2 2003-03-13 13:38:28 pj Exp $ |
File: $File$ |
Revision: $Revision: 1.1.1.1 $ |
Last update: $Date: 2002-03-29 14:12:51 $ |
Revision: $Revision: 1.2 $ |
Last update: $Date: 2003-03-13 13:38:28 $ |
------------ |
**/ |
57,6 → 57,10 |
#include <time.h> |
#include "ll/sys/cdefs.h" |
__BEGIN_DECLS |
/* |
* The struct used to pass data via the following ioctl. Similar to the |
* struct tm in <time.h>, but it needs to be here so that the kernel |
80,4 → 84,5 |
time_t sys_getdate(void); |
__END_DECLS |
#endif |