/shark/trunk/drivers/grx/drawfun/fun16.h |
---|
1,3 → 1,6 |
#include "ll/sys/cdefs.h" |
__BEGIN_DECLS |
#define memsetw(addr, val, n) {LIN_ADDR i; for(i = addr; i < addr + n; i += 2) lmempokew(i, val);} |
17,3 → 20,4 |
void linWr16(WORD x, WORD y, DWORD color); |
DWORD RdPixel_Hi(WORD x, WORD y); |
DWORD linRd16(WORD x, WORD y); |
__END_DECLS |
/shark/trunk/drivers/grx/drawfun/fun8.h |
---|
1,3 → 1,6 |
#include "ll/sys/cdefs.h" |
__BEGIN_DECLS |
void RdWin_256(WORD x1, WORD y1, WORD x2, WORD y2, BYTE *buf); |
void linGet8(WORD x1, WORD y1, WORD x2, WORD y2, BYTE *buf); |
void WrWin_256(WORD x1, WORD y1, WORD x2, WORD y2, BYTE *buf); |
14,3 → 17,4 |
void linWr8(WORD x, WORD y, DWORD color); |
DWORD RdPixel_256(WORD x, WORD y); |
DWORD linRd8(WORD x, WORD y); |
__END_DECLS |
/shark/trunk/drivers/grx/drivers/trident.h |
---|
1,4 → 1,8 |
#include "ll/sys/cdefs.h" |
__BEGIN_DECLS |
int trident_test(void); |
void trident_setpage(int page); |
void trident_showinfo(void); |
DWORD trident_getmem(void); |
__END_DECLS |
/shark/trunk/drivers/grx/drivers/vesa.h |
---|
1,4 → 1,8 |
#include <ll/i386/x-dos.h> |
#include "ll/sys/cdefs.h" |
__BEGIN_DECLS |
/****************************************************************************/ |
/* DEFINIZIONE DEI TIPI */ |
/****************************************************************************/ |
94,3 → 98,4 |
int vbe_checkmode(WORD mode); |
DWORD vbe_getmem(void); |
__END_DECLS |
/shark/trunk/drivers/grx/drivers/s3.h |
---|
1,3 → 1,6 |
#include "ll/sys/cdefs.h" |
__BEGIN_DECLS |
int s3_test(void); |
void s3_setpage(int page); |
void s3_setpage864(int page); |
4,3 → 7,4 |
void s3_linear(DWORD param); |
void s3_showinfo(void); |
DWORD s3_getmem(void); |
__END_DECLS |
/shark/trunk/drivers/svga/vgammvgaio.h |
---|
1,2 → 1,6 |
#include "ll/sys/cdefs.h" |
__BEGIN_DECLS |
extern unsigned long __svgalib_vgammbase; |
extern void __svgalib_mm_io_mapio(void); |
__END_DECLS |
/shark/trunk/drivers/svga/vgaregs.h |
---|
1,5 → 1,8 |
#include "ll/sys/cdefs.h" |
__BEGIN_DECLS |
/* Register indices into mode state array. */ |
#define VGA_CRTC_COUNT 24 |
114,3 → 117,5 |
#define __svgalib_inCR __svgalib_incrtc |
#define __svgalib_outCR __svgalib_outcrtc |
#define __svgalib_outbCR __svgalib_outcrtc |
__END_DECLS |
/shark/trunk/drivers/svga/interface.h |
---|
1,5 → 1,8 |
#include "ll/sys/cdefs.h" |
__BEGIN_DECLS |
/* Prototypes of functions defined in interface.c. */ |
/* |
21,3 → 24,4 |
*/ |
void __svgalib_clear_accelspecs(AccelSpecs * accelspecs); |
__END_DECLS |
/shark/trunk/drivers/svga/vgarelvgaio.h |
---|
1,2 → 1,6 |
#include "ll/sys/cdefs.h" |
__BEGIN_DECLS |
extern int __svgalib_io_reloc; |
extern void __svgalib_rel_io_mapio(void); |
__END_DECLS |
/shark/trunk/drivers/svga/io.h |
---|
1,5 → 1,8 |
#include <stdint.h> |
#include "ll/sys/cdefs.h" |
__BEGIN_DECLS |
#ifndef __alpha__ |
#define v_readb(addr) (*(volatile uint8_t *) (MMIO_POINTER+(addr))) |
67,4 → 70,5 |
mb(); |
} |
__END_DECLS |
#endif /* __alpha__ */ |
/shark/trunk/drivers/svga/accel.h |
---|
2,6 → 2,10 |
#ifndef ACCEL_H |
#define ACCEL_H |
#include "ll/sys/cdefs.h" |
__BEGIN_DECLS |
/* |
* New accelerator interface sketch. |
* As of svgalib 1.23, this isn't used yet. |
201,4 → 205,5 |
* void initOperations( AccelSpecs *accelspecs, int bpp, int width_in_pixels ); |
*/ |
__END_DECLS |
#endif |
/shark/trunk/drivers/svga/endianess.h |
---|
1,6 → 1,9 |
#include <endian.h> |
#include <byteswap.h> |
#include "ll/sys/cdefs.h" |
__BEGIN_DECLS |
#if __BYTE_ORDER == __BIG_ENDIAN |
#define LE32(x) bswap_32(x) |
12,3 → 15,5 |
#define BE32(x) bswap_32(x) |
#endif |
__END_DECLS |
/shark/trunk/drivers/svga/vgapci.h |
---|
1,3 → 1,6 |
#include "ll/sys/cdefs.h" |
__BEGIN_DECLS |
extern int __svgalib_pci_find_vendor_vga(unsigned int vendor, unsigned long *conf, int cont); |
extern int __svgalib_pci_find_vendor_vga_pos(unsigned int vendor, unsigned long *conf, int cont); |
extern int __svgalib_pci_idev; |
9,4 → 12,4 |
extern int __svgalib_pci_read_config_dword(int pos, int address); |
extern int __svgalib_pci_read_aperture_len(int pos, int address); |
extern int memorytest(unsigned char *m, int max_mem); |
__END_DECLS |
/shark/trunk/drivers/svga/grx/glib.h |
---|
20,11 → 20,11 |
/** |
------------ |
CVS : $Id: glib.h,v 1.2 2003-03-13 13:08:38 giacomo Exp $ |
CVS : $Id: glib.h,v 1.3 2003-03-13 13:46:08 pj Exp $ |
File: $File$ |
Revision: $Revision: 1.2 $ |
Last update: $Date: 2003-03-13 13:08:38 $ |
Revision: $Revision: 1.3 $ |
Last update: $Date: 2003-03-13 13:46:08 $ |
------------ |
**/ |
52,7 → 52,10 |
#define __GLIB_H__ |
#include <ll/sys/types.h> |
#include "ll/sys/cdefs.h" |
__BEGIN_DECLS |
int grx_setbuffer(BYTE *vbuf,WORD w, WORD h); |
void grx_plot(WORD x, WORD y, DWORD color); |
66,5 → 69,5 |
void grx_circle(WORD x, WORD y, WORD r, DWORD col); |
void grx_disc(WORD x, WORD y, WORD r, DWORD col); |
void grx_clear(DWORD color); |
__END_DECLS |
#endif |
/shark/trunk/drivers/svga/nvreg.h |
---|
26,6 → 26,10 |
#ifndef __NVREG_H_ |
#define __NVREG_H_ |
#include "ll/sys/cdefs.h" |
__BEGIN_DECLS |
/* Little macro to construct bitmask for contiguous ranges of bits */ |
#define BITMASK(t,b) (((unsigned)(1U << (((t)-(b)+1)))-1) << (b)) |
#define MASKEXPAND(mask) BITMASK(1?mask,0?mask) |
172,6 → 176,8 |
NVChipType GetChipType(void); |
*/ |
__END_DECLS |
#endif |
/shark/trunk/drivers/svga/vgaversion.h |
---|
1,2 → 1,7 |
#include "ll/sys/cdefs.h" |
__BEGIN_DECLS |
int vga_version=0x1917; |
static char versionstr[32]="1.9.17"; |
__END_DECLS |
/shark/trunk/drivers/svga/driver.h |
---|
17,7 → 17,10 |
#include "timing.h" |
#include "accel.h" |
#include "io.h" |
#include "ll/sys/cdefs.h" |
__BEGIN_DECLS |
#define MAX_REGS 5000 /* VESA needs a lot of storage space */ |
extern int inrestore; |
192,4 → 195,5 |
extern void __svgalib_readmodes(FILE * inp, ModeTable ** modes, int *dac, unsigned *clocks); |
__END_DECLS |
#endif |
/shark/trunk/drivers/svga/interrupt.h |
---|
1,5 → 1,8 |
#include "ll/sys/cdefs.h" |
__BEGIN_DECLS |
void vga_init_vsync(struct sh_pci_device *); |
int vga_test_vsync(struct sh_pci_device *); |
void vga_ack_vsync(struct sh_pci_device *); |
void vga_enable_vsync(struct sh_pci_device *); |
__END_DECLS |
/shark/trunk/drivers/svga/clockchip.h |
---|
1,3 → 1,7 |
#include "ll/sys/cdefs.h" |
__BEGIN_DECLS |
/* |
* clockchip.h |
*/ |
30,3 → 34,5 |
} ClockChipMethods; |
extern ClockChipMethods __svgalib_I2061A_clockchip_methods; |
__END_DECLS |
/shark/trunk/drivers/svga/8514a.h |
---|
10,7 → 10,10 |
#ifndef _8514A_H |
#define _8514A_H |
#include "ll/sys/cdefs.h" |
__BEGIN_DECLS |
#define CMD 0x9AE8 |
#define ALU_FG_FN 0xBAEE |
#define ALU_BG_FN 0xB6EE |
88,5 → 91,5 |
#define DEST_CMP_FN 0xEEEE |
#define CMP_COLOR 0xB2E8 |
#define RD_MASK 0xAEE8 |
__END_DECLS |
#endif /* _8514A_H */ |
/shark/trunk/drivers/svga/lrmi.h |
---|
13,6 → 13,10 |
#ifndef LRMI_H |
#define LRMI_H |
#include "ll/sys/cdefs.h" |
__BEGIN_DECLS |
struct LRMI_regs |
{ |
unsigned int edi; |
51,4 → 55,6 |
int |
LRMI_int(int interrupt, struct LRMI_regs *r); |
__END_DECLS |
#endif |
/shark/trunk/drivers/svga/libvga.h |
---|
11,6 → 11,10 |
#include <string.h> |
#include <stdint.h> |
#include "ll/sys/cdefs.h" |
__BEGIN_DECLS |
//typedef unsigned int CARD32; |
//typedef unsigned short CARD16; |
//typedef unsigned char CARD8; |
275,5 → 279,7 |
#define DPRINTF(...) |
#endif |
__END_DECLS |
#endif /* _LIBVGA_H */ |
/shark/trunk/drivers/svga/vgaio.h |
---|
1,5 → 1,7 |
#include "libvga.h" |
#include "ll/sys/cdefs.h" |
__BEGIN_DECLS |
extern int __svgalib_vga_inmisc(void); |
extern void __svgalib_vga_outmisc(int i); |
extern int __svgalib_vga_incrtc(int i); |
14,3 → 16,4 |
extern void __svgalib_vga_attscreen(int i); |
extern void __svgalib_vga_inpal(int i, int *r, int *g, int *b); |
extern void __svgalib_vga_outpal(int i, int r, int g, int b); |
__END_DECLS |
/shark/trunk/drivers/svga/vga.h |
---|
14,11 → 14,9 |
#include <drivers/grxsvga/glib.h> |
#include <kernel/log.h> |
#ifdef __cplusplus |
extern "C" |
{ |
#endif |
#include "ll/sys/cdefs.h" |
__BEGIN_DECLS |
#define rgb15(r, g, b) ((((WORD)(r & 0xF8)>>3) << 10) | (((WORD)(g & 0xF8)>>3) << 5) | ((WORD)(b & 0xF8)>>3)) |
#define rgb16(r, g, b) ((((WORD)(r & 0xF8)>>3) << 11) | (((WORD)(g & 0xFC)>>2) << 5) | ((WORD)(b & 0xF8)>>3)) |
#define rgb24(r, g, b) (((DWORD)(r & 0xFF) << 16) | ((DWORD)(g & 0xFF) << 8) | (DWORD)(b & 0xFF)) |
586,8 → 584,6 |
#define VGA_COMEFROMBACK -2 |
extern int vga_runinbackground_version(void); |
#ifdef __cplusplus |
} |
__END_DECLS |
#endif |
#endif /* VGA_H */ |
/shark/trunk/drivers/svga/svgalib_helper.h |
---|
1,6 → 1,10 |
#ifndef __SVGALIB_HELPER__ |
#define __SVGALIB_HELPER__ |
#include "ll/sys/cdefs.h" |
__BEGIN_DECLS |
#ifdef __KERNEL__ |
#define MAX_NR_DEVICES 15 |
85,6 → 89,8 |
int svgalib_helper_ioctl( struct inode *inode, unsigned int cmd, unsigned long arg); |
__END_DECLS |
#endif |
/shark/trunk/drivers/svga/ramdac.h |
---|
4,6 → 4,10 |
* Structures and functions for programmable ramdac support. |
*/ |
#include "ll/sys/cdefs.h" |
__BEGIN_DECLS |
/* DacMethods type. */ |
typedef struct { |
164,3 → 168,5 |
void _ramdac_dactopel(void); |
unsigned char _ramdac_setcomm(unsigned char data); |
#endif |
__END_DECLS |
/shark/trunk/drivers/svga/timing.h |
---|
2,6 → 2,10 |
#ifndef TIMING_H |
#define TIMING_H |
#include "ll/sys/cdefs.h" |
__BEGIN_DECLS |
/* |
* Generic mode timing module. |
*/ |
167,4 → 171,6 |
#define GTF_lockHF 2 /* Lock to horizontal frequency */ |
#define GTF_lockPF 3 /* Lock to pixel clock frequency*/ |
__END_DECLS |
#endif |
/shark/trunk/drivers/oldsnd/blaster.h |
---|
1,6 → 1,9 |
#include "semaphore.h" |
#include "ll/sys/cdefs.h" |
__BEGIN_DECLS |
typedef struct sb_device { |
DWORD BaseAddress; |
BYTE IntLine; |
43,3 → 46,5 |
void sb_dma16buffop(BYTE i_o); |
void sb_stopdsp(BYTE b); |
void sb_show(void); |
__END_DECLS |
/shark/trunk/drivers/oldsnd/sbio.h |
---|
1,3 → 1,7 |
#include "ll/sys/cdefs.h" |
__BEGIN_DECLS |
/* DSP Registers */ |
#define RESET 0x06 |
#define READDATA 0x0A |
56,3 → 60,5 |
BYTE inpb(WORD addr); |
void outpb(WORD addr, BYTE val); |
__END_DECLS |
/shark/trunk/drivers/net/netbuff.h |
---|
20,11 → 20,11 |
/** |
------------ |
CVS : $Id: netbuff.h,v 1.1.1.1 2002-03-29 14:12:50 pj Exp $ |
CVS : $Id: netbuff.h,v 1.2 2003-03-13 13:54:07 pj Exp $ |
File: $File$ |
Revision: $Revision: 1.1.1.1 $ |
Last update: $Date: 2002-03-29 14:12:50 $ |
Revision: $Revision: 1.2 $ |
Last update: $Date: 2003-03-13 13:54:07 $ |
------------ |
**/ |
56,10 → 56,10 |
#ifndef __NETBUFF_H__ |
#define __NETBUFF_H__ |
#ifdef __cplusplus |
extern "C" { |
#endif |
#include "ll/sys/cdefs.h" |
__BEGIN_DECLS |
typedef struct netbuff{ |
BYTE *b; |
BYTE **pb; |
73,8 → 73,6 |
void *netbuff_sequentialget(struct netbuff *netb, BYTE to); |
void netbuff_release(struct netbuff *netb, void *m); |
#ifdef __cplusplus |
}; |
#endif |
__END_DECLS |
#endif |
/shark/trunk/drivers/net/8390.h |
---|
11,7 → 11,10 |
#include <linux/if_ether.h> |
#include <linux/ioport.h> |
#include <linux/skbuff.h> |
#include "ll/sys/cdefs.h" |
__BEGIN_DECLS |
/* With kmod, drivers can now load the 8390 module themselves! */ |
#if 0 /* def CONFIG_KMOD */ |
#define LOAD_8390_BY_KMOD |
289,4 → 292,5 |
#define ENTSR_CDH 0x40 /* The collision detect "heartbeat" signal was lost. */ |
#define ENTSR_OWC 0x80 /* There was an out-of-window collision. */ |
__END_DECLS |
#endif /* _8390_h */ |
/shark/trunk/drivers/net/eth_priv.h |
---|
20,11 → 20,11 |
/** |
------------ |
CVS : $Id: eth_priv.h,v 1.1.1.1 2002-03-29 14:12:50 pj Exp $ |
CVS : $Id: eth_priv.h,v 1.2 2003-03-13 13:54:07 pj Exp $ |
File: $File$ |
Revision: $Revision: 1.1.1.1 $ |
Last update: $Date: 2002-03-29 14:12:50 $ |
Revision: $Revision: 1.2 $ |
Last update: $Date: 2003-03-13 13:54:07 $ |
------------ |
**/ |
57,10 → 57,10 |
#ifndef __ETH_H__ |
#define __ETH_H__ |
#ifdef __cplusplus |
extern "C" { |
#endif |
#include "ll/sys/cdefs.h" |
__BEGIN_DECLS |
#define LOOPBACK 2 |
#define ETH_MAX_LEN 1528 |
111,8 → 111,5 |
void eth_getAddress(struct eth_addr *eth); |
#ifdef __cplusplus |
}; |
__END_DECLS |
#endif |
#endif |
/shark/trunk/drivers/net/arp.h |
---|
20,11 → 20,11 |
/** |
------------ |
CVS : $Id: arp.h,v 1.1.1.1 2002-03-29 14:12:50 pj Exp $ |
CVS : $Id: arp.h,v 1.2 2003-03-13 13:54:07 pj Exp $ |
File: $File$ |
Revision: $Revision: 1.1.1.1 $ |
Last update: $Date: 2002-03-29 14:12:50 $ |
Revision: $Revision: 1.2 $ |
Last update: $Date: 2003-03-13 13:54:07 $ |
------------ |
**/ |
58,10 → 58,10 |
#ifndef __ARP_H__ |
#define __ARP_H__ |
#ifdef __cplusplus |
extern "C" { |
#endif |
#include "ll/sys/cdefs.h" |
__BEGIN_DECLS |
#define ARP_IP_TYPE 0x0800 |
#define ARP_ETH_TYPE 1 |
90,8 → 90,6 |
int arp_req(IP_ADDR dest); |
void arp_sendRequest(int i); |
#ifdef __cplusplus |
}; |
#endif |
__BEGIN_DECLS |
#endif |
/shark/trunk/drivers/linuxc24/include/linux/compatib.h |
---|
1,5 → 1,8 |
#include <kernel/kern.h> |
#include "ll/sys/cdefs.h" |
__BEGIN_DECLS |
#ifndef __UNIXCOMP__ |
#define __UNIXCOMP__ |
122,4 → 125,5 |
/* *** from linux-2.2.17/include/linux/byteorder/generic.h */ |
#define le16_to_cpu __le16_to_cpu |
__END_DECLS |
#endif |
/shark/trunk/drivers/linuxc24/include/asm/io.h |
---|
2,7 → 2,10 |
#define __IO__ |
#include <linux/compatib.h> |
#include "ll/sys/cdefs.h" |
__BEGIN_DECLS |
/* |
* Thanks to James van Artsdalen for a better timing-fix than |
* the two short jumps: using outb's to a nonexistent port seems |
71,5 → 74,5 |
#define writew(b,addr) (*(volatile unsigned short *) __io_virt(addr) = (b)) |
#define writel(b,addr) (*(volatile unsigned int *) __io_virt(addr) = (b)) |
__END_DECLS |
#endif |
/shark/trunk/drivers/linuxc24/include/fpu_control.h |
---|
21,6 → 21,10 |
#ifndef _FPU_CONTROL_H |
#define _FPU_CONTROL_H 1 |
#include "ll/sys/cdefs.h" |
__BEGIN_DECLS |
/* Here is the dirty part. Set up your 387 through the control word |
* (cw) register. |
* |
95,4 → 99,5 |
/* Default control word set at startup. */ |
extern fpu_control_t __fpu_control; |
__END_DECLS |
#endif /* fpu_control.h */ |
/shark/trunk/drivers/linuxc24/include/byteswap.h |
---|
21,8 → 21,11 |
/* Get the machine specific, optimized definitions. */ |
#include <bits/byteswap.h> |
#include "ll/sys/cdefs.h" |
__BEGIN_DECLS |
/* The following definitions must all be macros since otherwise some |
of the possible optimizations are not possible. */ |
37,4 → 40,5 |
# define bswap_64(x) __bswap_64 (x) |
#endif |
__END_DECLS |
#endif /* byteswap.h */ |
/shark/trunk/drivers/linuxc24/include/stdint.h |
---|
26,7 → 26,10 |
#include <features.h> |
#include <bits/wchar.h> |
#include <bits/wordsize.h> |
#include "ll/sys/cdefs.h" |
__BEGIN_DECLS |
/* Exact integral types. */ |
/* Signed. */ |
317,4 → 320,5 |
#endif /* C++ && constant macros */ |
__END_DECLS |
#endif /* stdint.h */ |
/shark/trunk/drivers/linuxc24/include/sys/ttydefaults.h |
---|
40,6 → 40,10 |
#ifndef _SYS_TTYDEFAULTS_H_ |
#define _SYS_TTYDEFAULTS_H_ |
#include "ll/sys/cdefs.h" |
__BEGIN_DECLS |
/* |
* Defaults on "first" open. |
*/ |
97,4 → 101,6 |
CDISCARD, CMIN, CTIME, CSTATUS, _POSIX_VDISABLE |
}; |
#undef TTYDEFCHARS |
__END_DECLS |
#endif |
/shark/trunk/drivers/pcl812/pclab.h |
---|
3,7 → 3,9 |
/* le funzioni di aquisizione contenute in PCLAB.C */ |
/*--------------------------------------------------------------*/ |
#include "ll/sys/cdefs.h" |
__BEGIN_DECLS |
float ad_conv(int ); /* conversione A/D */ |
int da_conv(float, int ); /* conversione D/A */ |
10,4 → 12,6 |
int par_in(void); /* ingresso digitale */ |
void par_out(int n); /* uscita digitale */ |
__END_DECLS |
/*--------------------------------------------------------------*/ |
/shark/trunk/drivers/block/sstf/sstf.h |
---|
42,7 → 42,10 |
#include "phdsk.h" |
#include "glue.h" |
#include "ll/sys/cdefs.h" |
__BEGIN_DECLS |
typedef struct TAGsstf_queue_t { |
struct phdskinfo *disk; |
/**/ |
65,4 → 68,5 |
#define bqueue_getrequest sstf_getrequest |
#define bqueue_removerequest sstf_removerequest |
__END_DECLS |
#endif |
/shark/trunk/drivers/block/fcfs/fcfs.h |
---|
42,7 → 42,10 |
#include "phdsk.h" |
#include "glue.h" |
#include "ll/sys/cdefs.h" |
__BEGIN_DECLS |
typedef struct TAGfcfs_queue_t { |
struct phdskinfo *disk; |
/**/ |
64,4 → 67,5 |
#define bqueue_getrequest fcfs_getrequest |
#define bqueue_removerequest fcfs_removerequest |
__END_DECLS |
#endif |
/shark/trunk/drivers/block/glue.h |
---|
20,7 → 20,10 |
*/ |
#include <kernel/int_sem.h> |
#include "ll/sys/cdefs.h" |
__BEGIN_DECLS |
/*+ a semaphore object +*/ |
typedef internal_sem_t __b_mutex_t; |
128,5 → 131,5 |
while (__gettimer()<t); \ |
} |
__END_DECLS |
#endif |
/shark/trunk/drivers/block/ide.h |
---|
21,11 → 21,11 |
/*************************************** |
CVS : $Id: ide.h,v 1.1.1.1 2002-03-29 14:12:49 pj Exp $ |
CVS : $Id: ide.h,v 1.2 2003-03-13 13:43:13 pj Exp $ |
Revision: $Revision: 1.1.1.1 $ |
Revision: $Revision: 1.2 $ |
Last update: $Date: 2002-03-29 14:12:49 $ |
Last update: $Date: 2003-03-13 13:43:13 $ |
Header file for all the modules of the IDE block device interface |
sub-system. |
57,7 → 57,10 |
#include "glue.h" |
#include "bdev.h" |
#include "bqueue.h" |
#include "ll/sys/cdefs.h" |
__BEGIN_DECLS |
/*+ max number of ide interface (must be <= 8) +*/ |
#define MAXIDEINTERFACES 4 |
444,6 → 447,7 |
#define is_communicatordev(p) ((((p)->config&0x1f00)>>8)==0x09) |
#define is_arraydev(p) ((((p)->config&0x1f00)>>8)==0x0c) |
__END_DECLS |
#endif |
/shark/trunk/drivers/block/edf/edf.h |
---|
42,7 → 42,10 |
#include "phdsk.h" |
#include "glue.h" |
#include "ll/sys/cdefs.h" |
__BEGIN_DECLS |
typedef struct TAGbd_edf_queue_t { |
struct phdskinfo *disk; |
/**/ |
65,4 → 68,5 |
#define bqueue_getrequest bd_edf_getrequest |
#define bqueue_removerequest bd_edf_removerequest |
__END_DECLS |
#endif |
/shark/trunk/drivers/block/idereq.h |
---|
9,7 → 9,10 |
#include "bqueue.h" |
#include "glue.h" |
#include "ll/sys/cdefs.h" |
__BEGIN_DECLS |
#define MAXIDEREQUEST 64 |
/* -------- */ |
60,4 → 63,5 |
/* remove the request that we have served blocking the queue*/ |
int remove_idereq_blocking(int ideif); |
__END_DECLS |
#endif |
/shark/trunk/drivers/block/phdsk.h |
---|
38,11 → 38,11 |
*/ |
/* |
* CVS : $Id: phdsk.h,v 1.1.1.1 2002-03-29 14:12:49 pj Exp $ |
* CVS : $Id: phdsk.h,v 1.2 2003-03-13 13:43:13 pj Exp $ |
* |
* File: $File$ |
* Revision: $Revision: 1.1.1.1 $ |
* Last update: $Date: 2002-03-29 14:12:49 $ |
* Revision: $Revision: 1.2 $ |
* Last update: $Date: 2003-03-13 13:43:13 $ |
*/ |
#ifndef __PHDSK_H__ |
49,7 → 49,10 |
#define __PHDSK_H__ |
#include "glue.h" |
#include "ll/sys/cdefs.h" |
__BEGIN_DECLS |
#define MAXPHDSK 4 |
#define MAXPHDSKNAME 16 |
85,4 → 88,5 |
void phdsk_init(void); |
struct phdskinfo *phdsk_register(struct phdskinfo *disk); |
__END_DECLS |
#endif |
/shark/trunk/drivers/block/lodsk.h |
---|
39,11 → 39,11 |
*/ |
/* |
* CVS : $Id: lodsk.h,v 1.1.1.1 2002-03-29 14:12:49 pj Exp $ |
* CVS : $Id: lodsk.h,v 1.2 2003-03-13 13:43:13 pj Exp $ |
* |
* File: $File$ |
* Revision: $Revision: 1.1.1.1 $ |
* Last update: $Date: 2002-03-29 14:12:49 $ |
* Revision: $Revision: 1.2 $ |
* Last update: $Date: 2003-03-13 13:43:13 $ |
*/ |
#ifndef __LODSK_H__ |
50,7 → 50,10 |
#define __LODSK_H__ |
#include "glue.h" |
#include "ll/sys/cdefs.h" |
__BEGIN_DECLS |
#define MSDOS_LABEL_MAGIC 0xAA55 |
struct phpartition { |
92,4 → 95,5 |
int lodsk_scan(__dev_t device, lodsk_callback_func func, |
void *data, int showinfo, char *lname); |
__END_DECLS |
#endif |
/shark/trunk/drivers/block/ideglue.h |
---|
1,9 → 1,13 |
#ifndef __IDEGLUE_H |
#define __IDEGLUE_H |
#include "ll/sys/cdefs.h" |
__BEGIN_DECLS |
void ide_glue_send_request(int ideif); |
int ide_glue_activate_interface(int ideif); |
void ide_glue_unactivate_interface(int ideif); |
__END_DECLS |
#endif |
/shark/trunk/drivers/block/look/look.h |
---|
42,7 → 42,10 |
#include "phdsk.h" |
#include "glue.h" |
#include "ll/sys/cdefs.h" |
__BEGIN_DECLS |
typedef struct TAGlook_queue_t { |
struct phdskinfo *disk; |
/**/ |
64,4 → 67,5 |
#define bqueue_getrequest look_getrequest |
#define bqueue_removerequest look_removerequest |
__END_DECLS |
#endif |
/shark/trunk/drivers/block/pscan/pscan.h |
---|
42,7 → 42,10 |
#include "phdsk.h" |
#include "glue.h" |
#include "ll/sys/cdefs.h" |
__BEGIN_DECLS |
/* must be in sync with <modules/bd_pscan.h> */ |
#define NUMPRIORITY 4 |
70,4 → 73,5 |
#define bqueue_getrequest pscan_getrequest |
#define bqueue_removerequest pscan_removerequest |
__END_DECLS |
#endif |
/shark/trunk/drivers/block/bdev.h |
---|
39,11 → 39,11 |
*/ |
/* |
* CVS : $Id: bdev.h,v 1.1.1.1 2002-03-29 14:12:49 pj Exp $ |
* CVS : $Id: bdev.h,v 1.2 2003-03-13 13:43:13 pj Exp $ |
* |
* File: $File$ |
* Revision: $Revision: 1.1.1.1 $ |
* Last update: $Date: 2002-03-29 14:12:49 $ |
* Revision: $Revision: 1.2 $ |
* Last update: $Date: 2003-03-13 13:43:13 $ |
*/ |
#ifndef __BDEV_H__ |
52,7 → 52,10 |
#include "glue.h" |
#include <fs/bdevinit.h> |
#include <fs/bdev.h> |
#include "ll/sys/cdefs.h" |
__BEGIN_DECLS |
#define MAXBLOCKDEVICE 8 |
struct block_device { |
105,4 → 108,5 |
int bdev_seek(__dev_t dev, __blkcnt_t blocknum); |
int bdev_write(__dev_t dev, __blkcnt_t blocknum, __uint8_t *buffer); |
__END_DECLS |
#endif |
/shark/trunk/drivers/block/clook/clook.h |
---|
43,7 → 43,10 |
#include "phdsk.h" |
#include "glue.h" |
#include "ll/sys/cdefs.h" |
__BEGIN_DECLS |
typedef struct TAGclook_queue_t { |
struct phdskinfo *disk; |
/**/ |
65,4 → 68,5 |
#define bqueue_getrequest clook_getrequest |
#define bqueue_removerequest clook_removerequest |
__END_DECLS |
#endif |
/shark/trunk/drivers/block/debug.h |
---|
1,3 → 1,8 |
#include "ll/sys/cdefs.h" |
__BEGIN_DECLS |
/* si trova in fs/util/ */ |
void dump_buffer(char *buf, int size); |
__END_DECLS |
/shark/trunk/drivers/block/bqueue.h |
---|
20,11 → 20,11 |
/*************************************** |
CVS : $Id: bqueue.h,v 1.1.1.1 2002-03-29 14:12:49 pj Exp $ |
CVS : $Id: bqueue.h,v 1.2 2003-03-13 13:43:13 pj Exp $ |
Revision: $Revision: 1.1.1.1 $ |
Revision: $Revision: 1.2 $ |
Last update: $Date: 2002-03-29 14:12:49 $ |
Last update: $Date: 2003-03-13 13:43:13 $ |
This module is responsable of the protocol between the IDE device driver |
interface and the host (the computer). |
74,6 → 74,10 |
#include "pscan/pscan.h" |
#endif |
#include "ll/sys/cdefs.h" |
__BEGIN_DECLS |
#define REQ_DUMMY 0 |
#define REQ_SEEK 1 |
#define REQ_READ 2 |
95,5 → 99,5 |
int bqueue_insertrequest(bqueue_t *, struct request_prologue *); |
struct request_prologue *bqueue_getrequest(bqueue_t *); |
int bqueue_removerequest(bqueue_t *); |
__END_DECLS |
#endif |
/shark/trunk/drivers/pci/linuxpci.h |
---|
46,6 → 46,10 |
#ifndef LINUX_PCI_H |
#define LINUX_PCI_H |
#include "ll/sys/cdefs.h" |
__BEGIN_DECLS |
/* |
* Under PCI, each device has 256 bytes of configuration address space, |
* of which the first 64 bytes are standardized as follows: |
1076,4 → 1080,6 |
extern const char *pci_strclass (unsigned int class); |
extern const char *pci_strvendor (unsigned int vendor); |
__END_DECLS |
#endif /* LINUX_PCI_H */ |
/shark/trunk/drivers/pci/pci.h |
---|
9,10 → 9,10 |
#ifndef __PCI_H__ |
#define __PCI_H__ |
#ifdef __cplusplus |
extern "C" { |
#endif |
#include "ll/sys/cdefs.h" |
__BEGIN_DECLS |
#define N_MAX_DEVS 10 |
typedef struct pci_regs { |
72,9 → 72,7 |
struct pci_regs *pci_class(DWORD class_code, WORD index, BYTE *bus, BYTE *dev); |
struct pci_regs *pci_device(WORD vendor, WORD device, WORD index, BYTE *bus, BYTE *dev); |
#ifdef __cplusplus |
}; |
#endif |
__END_DECLS |
#endif |
/shark/trunk/drivers/char/8042.h |
---|
20,11 → 20,11 |
/** |
------------ |
CVS : $Id: 8042.h,v 1.1.1.1 2002-03-29 14:12:49 pj Exp $ |
CVS : $Id: 8042.h,v 1.2 2003-03-13 13:49:53 pj Exp $ |
File: $File$ |
Revision: $Revision: 1.1.1.1 $ |
Last update: $Date: 2002-03-29 14:12:49 $ |
Revision: $Revision: 1.2 $ |
Last update: $Date: 2003-03-13 13:49:53 $ |
------------ |
8042.h |
63,6 → 63,10 |
#ifndef __8042_H__ |
#define __8042_H__ |
#include "ll/sys/cdefs.h" |
__BEGIN_DECLS |
#define C8042_KEYBOARDIRQ 1 |
#define C8042_PS2IRQ 12 |
213,6 → 217,7 |
need |
*/ |
__END_DECLS |
#endif |
/shark/trunk/drivers/char/sermouse.h |
---|
20,11 → 20,11 |
/** |
------------ |
CVS : $Id: sermouse.h,v 1.1.1.1 2002-03-29 14:12:49 pj Exp $ |
CVS : $Id: sermouse.h,v 1.2 2003-03-13 13:49:53 pj Exp $ |
File: $File$ |
Revision: $Revision: 1.1.1.1 $ |
Last update: $Date: 2002-03-29 14:12:49 $ |
Revision: $Revision: 1.2 $ |
Last update: $Date: 2003-03-13 13:49:53 $ |
------------ |
Author: Massimiliano Giorgi |
59,7 → 59,10 |
#define __SERMOUSE_H__ |
#include <drivers/mouse.h> |
#include "ll/sys/cdefs.h" |
__BEGIN_DECLS |
typedef struct sermouse_info { |
int type; /* MSMOUSE, MMMOUSE,... */ |
int port; /* COM1,COM2,... */ |
88,4 → 91,5 |
int M_mm(MOUSE_EVT *evt,unsigned char *data); |
int M_logi(MOUSE_EVT *evt,unsigned char *data); |
__END_DECLS |
#endif |
/shark/trunk/drivers/char/ps2mouse.h |
---|
20,11 → 20,11 |
/** |
------------ |
CVS : $Id: ps2mouse.h,v 1.1.1.1 2002-03-29 14:12:49 pj Exp $ |
CVS : $Id: ps2mouse.h,v 1.2 2003-03-13 13:49:53 pj Exp $ |
File: $File$ |
Revision: $Revision: 1.1.1.1 $ |
Last update: $Date: 2002-03-29 14:12:49 $ |
Revision: $Revision: 1.2 $ |
Last update: $Date: 2003-03-13 13:49:53 $ |
------------ |
Author: Massimiliano Giorgi |
59,7 → 59,10 |
#define __PS2MOUSE_H__ |
#include <drivers/mouse.h> |
#include "ll/sys/cdefs.h" |
__BEGIN_DECLS |
extern int C8042_ps2mousepresent(void); |
#define ps2mouse_present() C8042_ps2mousepresent() |
75,4 → 78,5 |
extern int M_ps2(MOUSE_EVT *evt, unsigned char *data); |
__END_DECLS |
#endif |
/shark/trunk/drivers/char/_mouse.h |
---|
20,11 → 20,11 |
/** |
------------ |
CVS : $Id: _mouse.h,v 1.1.1.1 2002-03-29 14:12:49 pj Exp $ |
CVS : $Id: _mouse.h,v 1.2 2003-03-13 13:49:53 pj Exp $ |
File: $File$ |
Revision: $Revision: 1.1.1.1 $ |
Last update: $Date: 2002-03-29 14:12:49 $ |
Revision: $Revision: 1.2 $ |
Last update: $Date: 2003-03-13 13:49:53 $ |
------------ |
_mouse.h |
52,7 → 52,10 |
#ifndef ___MOUSE_H__ |
#define ___MOUSE_H__ |
#include "ll/sys/cdefs.h" |
__BEGIN_DECLS |
/* "virtual operations" on a mouse */ |
struct mouse_operations { |
char *name; /* name! */ |
134,6 → 137,7 |
/* (to not declare saved_x & saved_y public) */ |
void _mouse_getsavedposition(int *xptr, int *yptr); |
__END_DECLS |
#endif |
/shark/trunk/drivers/linuxcom/include/linux/netdevice.h |
---|
9,7 → 9,10 |
#include <linux/skbuff.h> |
#include <linux/notifier.h> |
#include <time.h> |
#include "ll/sys/cdefs.h" |
__BEGIN_DECLS |
// for 3c59x.c (!!!) |
#define le32_to_cpu(val) (val) |
#define cpu_to_le32(val) (val) |
258,6 → 261,7 |
void netif_rx(struct sk_buff *skb); |
__END_DECLS |
#endif |
/shark/trunk/drivers/linuxcom/include/linux/stddef.h |
---|
1,6 → 1,10 |
#ifndef _LINUX_STDDEF_H |
#define _LINUX_STDDEF_H |
#include "ll/sys/cdefs.h" |
__BEGIN_DECLS |
#ifndef _SIZE_T |
#define _SIZE_T |
typedef unsigned int size_t; |
12,4 → 16,6 |
#undef offsetof |
#define offsetof(TYPE, MEMBER) ((size_t) &((TYPE *)0)->MEMBER) |
__END_DECLS |
#endif |
/shark/trunk/drivers/linuxcom/include/linux/notifier.h |
---|
2,7 → 2,10 |
#define __NOTIFIER__ |
#include <linux/compatib.h> |
#include "ll/sys/cdefs.h" |
__BEGIN_DECLS |
struct notifier_block |
{ |
int (*notifier_call)(struct notifier_block *this, unsigned long, void *); |
10,4 → 13,6 |
int priority; |
}; |
__END_DECLS |
#endif |
/shark/trunk/drivers/linuxcom/include/linux/kernel.h |
---|
2,7 → 2,10 |
#define __KERNEL__ |
#include <linux/compatib.h> |
#include "ll/sys/cdefs.h" |
__BEGIN_DECLS |
/* Optimization barrier */ |
#define barrier() __asm__("": : :"memory") |
14,4 → 17,6 |
#define KERN_NOTICE "<5>" /* normal but significant condition */ |
#define KERN_INFO "<6>" /* informational */ |
#define KERN_DEBUG "<7>" /* debug-level messages */ |
__END_DECLS |
#endif |
/shark/trunk/drivers/linuxcom/include/linux/etherdevice.h |
---|
5,7 → 5,10 |
#include <linux/if_ether.h> |
#include <linux/socket.h> |
#include "ll/sys/cdefs.h" |
__BEGIN_DECLS |
#define eth_header panic_stub |
#if 0 |
extern int eth_header(struct sk_buff *skb, struct device *dev, |
27,4 → 30,5 |
unsigned char *src, int length, int base); |
extern struct device * init_etherdev(struct device *, int); |
__END_DECLS |
#endif |
/shark/trunk/drivers/linuxcom/include/linux/interrupt.h |
---|
2,7 → 2,10 |
#define __INTERRUPT__ |
#include <linux/compatib.h> |
#include "ll/sys/cdefs.h" |
__BEGIN_DECLS |
#define NR_IRQS 128 |
int request_irq(unsigned int irq, void (*handler)(int, void *dev_id, struct pt_regs *), unsigned long flags, const char *device, void *dev_id); |
13,4 → 16,5 |
void free_irq(unsigned int irq, void *d); |
__END_DECLS |
#endif |
/shark/trunk/drivers/linuxcom/include/linux/compatib.h |
---|
1,5 → 1,8 |
#include <kernel/kern.h> |
#include "ll/sys/cdefs.h" |
__BEGIN_DECLS |
#ifndef __UNIXCOMP__ |
#define __UNIXCOMP__ |
134,4 → 137,5 |
/* *** from linux-2.2.17/include/linux/byteorder/generic.h */ |
#define le16_to_cpu __le16_to_cpu |
__END_DECLS |
#endif |
/shark/trunk/drivers/linuxcom/include/linux/timer.h |
---|
20,11 → 20,11 |
/** |
------------ |
CVS : $Id: timer.h,v 1.1.1.1 2002-03-29 14:12:49 pj Exp $ |
CVS : $Id: timer.h,v 1.2 2003-03-13 13:48:05 pj Exp $ |
File: $File$ |
Revision: $Revision: 1.1.1.1 $ |
Last update: $Date: 2002-03-29 14:12:49 $ |
Revision: $Revision: 1.2 $ |
Last update: $Date: 2003-03-13 13:48:05 $ |
------------ |
**/ |
51,7 → 51,10 |
#include <kernel/kern.h> |
#include <linux/compatib.h> |
#include "ll/sys/cdefs.h" |
__BEGIN_DECLS |
/* |
* This is completely separate from the above, and is the |
* "new and improved" way of handling timers more dynamically. |
83,5 → 86,5 |
int add_timer(struct timer_list *timer); |
void del_timer(struct timer_list *timer); |
__END_DECLS |
#endif |
/shark/trunk/drivers/linuxcom/include/linux/skbuff.h |
---|
2,7 → 2,10 |
#define __SKBUFF__ |
#include <linux/compatib.h> |
#include "ll/sys/cdefs.h" |
__BEGIN_DECLS |
#define HAVE_ALLOC_SKB /* For the drivers to know */ |
#define HAVE_ALIGNABLE_SKB /* Ditto 8) */ |
128,5 → 131,5 |
extern void skb_queue_head_init(struct sk_buff_head *list); |
extern struct sk_buff * skb_clone(struct sk_buff *skb, int priority); |
extern void skb_reserve(struct sk_buff *skb, int len); |
__END_DECLS |
#endif |
/shark/trunk/drivers/linuxcom/include/linux/socket.h |
---|
1,6 → 1,10 |
#ifndef _LINUX_SOCKET_H |
#define _LINUX_SOCKET_H |
#include "ll/sys/cdefs.h" |
__BEGIN_DECLS |
struct sockaddr |
{ |
unsigned short sa_family; /* address family, AF_xxx */ |
135,4 → 139,6 |
extern int move_addr_to_user(void *kaddr, int klen, void *uaddr, int *ulen); |
extern int move_addr_to_kernel(void *uaddr, int ulen, void *kaddr); |
#endif |
__END_DECLS |
#endif /* _LINUX_SOCKET_H */ |
/shark/trunk/drivers/linuxcom/include/asm/bitops.h |
---|
2,7 → 2,10 |
#define __BITOPS__ |
#include <linux/compatib.h> |
#include "ll/sys/cdefs.h" |
__BEGIN_DECLS |
#define LOCK_PREFIX "" |
#define SMPVOL |
40,4 → 43,5 |
return ((1UL << (nr & 31)) & (((const unsigned int *) addr)[nr >> 5])) != 0; |
} |
__END_DECLS |
#endif |
/shark/trunk/drivers/linuxcom/include/asm/io.h |
---|
2,7 → 2,10 |
#define __IO__ |
#include <linux/compatib.h> |
#include "ll/sys/cdefs.h" |
__BEGIN_DECLS |
/* |
* Thanks to James van Artsdalen for a better timing-fix than |
* the two short jumps: using outb's to a nonexistent port seems |
71,5 → 74,5 |
#define writew(b,addr) (*(volatile unsigned short *) __io_virt(addr) = (b)) |
#define writel(b,addr) (*(volatile unsigned int *) __io_virt(addr) = (b)) |
__END_DECLS |
#endif |
/shark/trunk/drivers/linuxcom/include/net/sock.h |
---|
20,11 → 20,11 |
/** |
------------ |
CVS : $Id: sock.h,v 1.1.1.1 2002-03-29 14:12:49 pj Exp $ |
CVS : $Id: sock.h,v 1.2 2003-03-13 13:48:05 pj Exp $ |
File: $File$ |
Revision: $Revision: 1.1.1.1 $ |
Last update: $Date: 2002-03-29 14:12:49 $ |
Revision: $Revision: 1.2 $ |
Last update: $Date: 2003-03-13 13:48:05 $ |
------------ |
**/ |
56,8 → 56,11 |
#include <linux/netdevice.h> |
#include <linux/skbuff.h> /* struct sk_buff */ |
#include "ll/sys/cdefs.h" |
__BEGIN_DECLS |
/* |
* This structure really needs to be cleaned up. |
* Most of it is for TCP, and not used by any of |
239,4 → 242,6 |
}; |
__END_DECLS |
#endif |