klaptopdaemon
k_compat.h File Reference
#include <linux/module.h>
#include <asm/segment.h>
#include <asm/byteorder.h>
#include <asm/io.h>
#include <linux/bios32.h>
#include <linux/pci.h>

Go to the source code of this file.
Defines | |
| #define | __LINUX__ |
| #define | VERSION(v, p, s) (((v)<<16)+(p<<8)+s) |
| #define | RUN_AT(x) (jiffies+(x)) |
| #define | CONST const |
| #define | ALLOC_SKB(len) dev_alloc_skb(len+2) |
| #define | DEVICE(req) ((req)->rq_dev) |
| #define | GET_PACKET(dev, skb, count) |
| #define | BLK_DEV_HDR "linux/blk.h" |
| #define | NEW_MULTICAST |
| #define | FREE_IRQ(i, d) free_irq(i, d) |
| #define | REQUEST_IRQ(i, h, f, n, d) request_irq(i,h,f,n,d) |
| #define | IRQ(a, b, c) (a,b,c) |
| #define | DEV_ID dev_id |
| #define | init_waitqueue(p) (*(p) = NULL) |
| #define | FS_SIZE_T int |
| #define | U_FS_SIZE_T int |
| #define | net_device_stats enet_statistics |
| #define | FS_RELEASE_T void |
| #define | test_and_set_bit set_bit |
| #define | MODULE_PARM(a, b) extern int __bogus_decl |
| #define | GET_USE_COUNT(m) mod_use_count_ |
| #define | copy_from_user memcpy_fromfs |
| #define | copy_to_user memcpy_tofs |
| #define | ioremap(a, b) (((a) < 0x100000) ? (void *)((u_long)(a)) : vremap(a,b)) |
| #define | iounmap(v) do { if ((u_long)(v) > 0x100000) vfree(v); } while (0) |
| #define | get_user(x, ptr) |
| #define | F_INODE(file) ((file)->f_inode) |
| #define | INVALIDATE_INODES(r) invalidate_inodes(r) |
| #define | IRQ_MAP(irq, dev) irq2dev_map[irq] = dev |
| #define | FOPS(i, f, b, c, p) (i,f,b,c) |
| #define | FPOS (file->f_pos) |
| #define | signal_pending(cur) ((cur)->signal & ~(cur)->blocked) |
| #define | DEV_KFREE_SKB(skb) dev_kfree_skb(skb, FREE_WRITE) |
| #define | POLL_WAIT(f, q, w) poll_wait(q, w) |
| #define | le16_to_cpu(x) (x) |
| #define | le32_to_cpu(x) (x) |
| #define | cpu_to_le16(x) (x) |
| #define | cpu_to_le32(x) (x) |
| #define | spin_lock(l) do { } while (0) |
| #define | spin_unlock(l) do { } while (0) |
| #define | spin_lock_irqsave(l, f) do { save_flags(f); cli(); } while (0) |
| #define | spin_unlock_irqrestore(l, f) do { restore_flags(f); } while (0) |
| #define | mdelay(x) { int i; for (i=0;i<x;i++) udelay(1000); } |
| #define | wacquire(w) do { } while (0) |
| #define | wrelease(w) do { } while (0) |
| #define | wsleep(w) interruptible_sleep_on(w) |
| #define | wakeup(w) wake_up_interruptible(w) |
| #define | wsleeptimeout(w, t) interruptible_sleep_on_timeout(w,t) |
| #define | interruptible_sleep_on_timeout(w, t) ({(current->timeout=jiffies+(t));wsleep(w);current->timeout;}) |
| #define | schedule_timeout(t) do { current->timeout = jiffies+(t); schedule(); } while (0) |
| #define | readw_ns(p) readw(p) |
| #define | readl_ns(p) readl(p) |
| #define | writew_ns(v, p) writew(v,p) |
| #define | writel_ns(v, p) writel(v,p) |
| #define | inw_ns(p) inw(p) |
| #define | inl_ns(p) inl(p) |
| #define | outw_ns(v, p) outw(v,p) |
| #define | outl_ns(v, p) outl(v,p) |
| #define | insw_ns(p, b, l) insw(p,b,l) |
| #define | insl_ns(p, b, l) insl(p,b,l) |
| #define | outsw_ns(p, b, l) outsw(p,b,l) |
| #define | outsl_ns(p, b, l) outsl(p,b,l) |
| #define | PCI_FUNC(devfn) ((devfn)&7) |
| #define | PCI_SLOT(devfn) ((devfn)>>3) |
| #define | PCI_DEVFN(dev, fn) (((dev)<<3)|((fn)&7)) |
| #define | NULL_FLUSH |
| #define | SCSI_DISK0_MAJOR SCSI_DISK_MAJOR |
| #define | ACQUIRE_RESOURCE_LOCK do {} while (0) |
| #define | RELEASE_RESOURCE_LOCK do {} while (0) |
Typedefs | |
| typedef unsigned long | k_time_t |
Define Documentation
| #define __LINUX__ |
Definition at line 22 of file k_compat.h.
| #define ACQUIRE_RESOURCE_LOCK do {} while (0) |
Definition at line 234 of file k_compat.h.
| #define ALLOC_SKB | ( | len | ) | dev_alloc_skb(len+2) |
Definition at line 27 of file k_compat.h.
| #define BLK_DEV_HDR "linux/blk.h" |
Definition at line 34 of file k_compat.h.
| #define CONST const |
Definition at line 26 of file k_compat.h.
| #define copy_from_user memcpy_fromfs |
Definition at line 88 of file k_compat.h.
| #define copy_to_user memcpy_tofs |
Definition at line 89 of file k_compat.h.
| #define cpu_to_le16 | ( | x | ) | (x) |
Definition at line 156 of file k_compat.h.
| #define cpu_to_le32 | ( | x | ) | (x) |
Definition at line 157 of file k_compat.h.
| #define DEV_ID dev_id |
Definition at line 40 of file k_compat.h.
| #define DEV_KFREE_SKB | ( | skb | ) | dev_kfree_skb(skb, FREE_WRITE) |
Definition at line 143 of file k_compat.h.
| #define DEVICE | ( | req | ) | ((req)->rq_dev) |
Definition at line 28 of file k_compat.h.
| #define F_INODE | ( | file | ) | ((file)->f_inode) |
Definition at line 118 of file k_compat.h.
| #define FOPS | ( | i, | |||
| f, | |||||
| b, | |||||
| c, | |||||
| p | ) | (i,f,b,c) |
Definition at line 131 of file k_compat.h.
| #define FPOS (file->f_pos) |
Definition at line 132 of file k_compat.h.
| #define FREE_IRQ | ( | i, | |||
| d | ) | free_irq(i, d) |
Definition at line 37 of file k_compat.h.
| #define FS_RELEASE_T void |
Definition at line 63 of file k_compat.h.
| #define FS_SIZE_T int |
Definition at line 47 of file k_compat.h.
| #define GET_PACKET | ( | dev, | |||
| skb, | |||||
| count | ) |
Value:
skb_reserve((skb), 2); \
BLOCK_INPUT(skb_put((skb), (count)), (count)); \
(skb)->protocol = eth_type_trans((skb), (dev))
Definition at line 29 of file k_compat.h.
| #define GET_USE_COUNT | ( | m | ) | mod_use_count_ |
Definition at line 84 of file k_compat.h.
| #define get_user | ( | x, | |||
| ptr | ) |
Value:
((sizeof(*ptr) == 4) ? (x = get_fs_long(ptr)) : \ (sizeof(*ptr) == 2) ? (x = get_fs_word(ptr)) : \ (x = get_fs_byte(ptr)))
Definition at line 108 of file k_compat.h.
| #define init_waitqueue | ( | p | ) | (*(p) = NULL) |
Definition at line 43 of file k_compat.h.
| #define inl_ns | ( | p | ) | inl(p) |
Definition at line 201 of file k_compat.h.
| #define insl_ns | ( | p, | |||
| b, | |||||
| l | ) | insl(p,b,l) |
Definition at line 208 of file k_compat.h.
| #define insw_ns | ( | p, | |||
| b, | |||||
| l | ) | insw(p,b,l) |
Definition at line 207 of file k_compat.h.
| #define interruptible_sleep_on_timeout | ( | w, | |||
| t | ) | ({(current->timeout=jiffies+(t));wsleep(w);current->timeout;}) |
Definition at line 178 of file k_compat.h.
| #define INVALIDATE_INODES | ( | r | ) | invalidate_inodes(r) |
Definition at line 123 of file k_compat.h.
| #define inw_ns | ( | p | ) | inw(p) |
Definition at line 200 of file k_compat.h.
| #define ioremap | ( | a, | |||
| b | ) | (((a) < 0x100000) ? (void *)((u_long)(a)) : vremap(a,b)) |
Definition at line 92 of file k_compat.h.
| #define iounmap | ( | v | ) | do { if ((u_long)(v) > 0x100000) vfree(v); } while (0) |
Definition at line 94 of file k_compat.h.
| #define IRQ | ( | a, | |||
| b, | |||||
| c | ) | (a,b,c) |
Definition at line 39 of file k_compat.h.
| #define IRQ_MAP | ( | irq, | |||
| dev | ) | irq2dev_map[irq] = dev |
Definition at line 130 of file k_compat.h.
| #define le16_to_cpu | ( | x | ) | (x) |
Definition at line 154 of file k_compat.h.
| #define le32_to_cpu | ( | x | ) | (x) |
Definition at line 155 of file k_compat.h.
| #define mdelay | ( | x | ) | { int i; for (i=0;i<x;i++) udelay(1000); } |
Definition at line 169 of file k_compat.h.
| #define MODULE_PARM | ( | a, | |||
| b | ) | extern int __bogus_decl |
Definition at line 82 of file k_compat.h.
| #define net_device_stats enet_statistics |
Definition at line 59 of file k_compat.h.
| #define NEW_MULTICAST |
Definition at line 35 of file k_compat.h.
| #define NULL_FLUSH |
Definition at line 226 of file k_compat.h.
| #define outl_ns | ( | v, | |||
| p | ) | outl(v,p) |
Definition at line 203 of file k_compat.h.
| #define outsl_ns | ( | p, | |||
| b, | |||||
| l | ) | outsl(p,b,l) |
Definition at line 210 of file k_compat.h.
| #define outsw_ns | ( | p, | |||
| b, | |||||
| l | ) | outsw(p,b,l) |
Definition at line 209 of file k_compat.h.
| #define outw_ns | ( | v, | |||
| p | ) | outw(v,p) |
Definition at line 202 of file k_compat.h.
| #define PCI_DEVFN | ( | dev, | |||
| fn | ) | (((dev)<<3)|((fn)&7)) |
Definition at line 220 of file k_compat.h.
| #define PCI_FUNC | ( | devfn | ) | ((devfn)&7) |
Definition at line 218 of file k_compat.h.
| #define PCI_SLOT | ( | devfn | ) | ((devfn)>>3) |
Definition at line 219 of file k_compat.h.
| #define POLL_WAIT | ( | f, | |||
| q, | |||||
| w | ) | poll_wait(q, w) |
Definition at line 148 of file k_compat.h.
| #define readl_ns | ( | p | ) | readl(p) |
Definition at line 197 of file k_compat.h.
| #define readw_ns | ( | p | ) | readw(p) |
Definition at line 196 of file k_compat.h.
| #define RELEASE_RESOURCE_LOCK do {} while (0) |
Definition at line 235 of file k_compat.h.
| #define REQUEST_IRQ | ( | i, | |||
| h, | |||||
| f, | |||||
| n, | |||||
| d | ) | request_irq(i,h,f,n,d) |
Definition at line 38 of file k_compat.h.
| #define RUN_AT | ( | x | ) | (jiffies+(x)) |
Definition at line 25 of file k_compat.h.
| #define schedule_timeout | ( | t | ) | do { current->timeout = jiffies+(t); schedule(); } while (0) |
Definition at line 180 of file k_compat.h.
| #define SCSI_DISK0_MAJOR SCSI_DISK_MAJOR |
Definition at line 230 of file k_compat.h.
| #define signal_pending | ( | cur | ) | ((cur)->signal & ~(cur)->blocked) |
Definition at line 139 of file k_compat.h.
| #define spin_lock | ( | l | ) | do { } while (0) |
Definition at line 161 of file k_compat.h.
| #define spin_lock_irqsave | ( | l, | |||
| f | ) | do { save_flags(f); cli(); } while (0) |
Definition at line 163 of file k_compat.h.
| #define spin_unlock | ( | l | ) | do { } while (0) |
Definition at line 162 of file k_compat.h.
| #define spin_unlock_irqrestore | ( | l, | |||
| f | ) | do { restore_flags(f); } while (0) |
Definition at line 164 of file k_compat.h.
| #define test_and_set_bit set_bit |
Definition at line 68 of file k_compat.h.
| #define U_FS_SIZE_T int |
Definition at line 48 of file k_compat.h.
| #define VERSION | ( | v, | |||
| p, | |||||
| s | ) | (((v)<<16)+(p<<8)+s) |
Definition at line 23 of file k_compat.h.
| #define wacquire | ( | w | ) | do { } while (0) |
Definition at line 172 of file k_compat.h.
| #define wakeup | ( | w | ) | wake_up_interruptible(w) |
Definition at line 175 of file k_compat.h.
| #define wrelease | ( | w | ) | do { } while (0) |
Definition at line 173 of file k_compat.h.
| #define writel_ns | ( | v, | |||
| p | ) | writel(v,p) |
Definition at line 199 of file k_compat.h.
| #define writew_ns | ( | v, | |||
| p | ) | writew(v,p) |
Definition at line 198 of file k_compat.h.
| #define wsleep | ( | w | ) | interruptible_sleep_on(w) |
Definition at line 174 of file k_compat.h.
| #define wsleeptimeout | ( | w, | |||
| t | ) | interruptible_sleep_on_timeout(w,t) |
Definition at line 176 of file k_compat.h.
Typedef Documentation
| typedef unsigned long k_time_t |
Definition at line 233 of file k_compat.h.
KDE 4.0 API Reference