Changeset 479 for GPL/trunk/include/linux
- Timestamp:
- May 1, 2010, 9:49:10 PM (15 years ago)
- Location:
- GPL/trunk/include/linux
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
GPL/trunk/include/linux/math64.h
r463 r479 63 63 u32 q1 = 0; 64 64 int c = 32; 65 while (n > 0xffffffffU ) {65 while (n > 0xffffffffUi64) { 66 66 q1 <<= 1; 67 67 if (n >= d) { … … 110 110 u32 low1 = low; 111 111 high /= div; 112 divl(high1, low1, div, &low, rem);112 divl(high1, low1, div, &low, &rem); 113 113 return (u64)high << 32 | low; 114 114 } else { -
GPL/trunk/include/linux/pci.h
r463 r479 73 73 /* 74 74 * Base addresses specify locations in memory or I/O space. 75 * Decoded size can be determined by writing a value of 76 * 0xffffffff to the register, and reading it back. Only 75 * Decoded size can be determined by writing a value of 76 * 0xffffffff to the register, and reading it back. Only 77 77 * 1 bits are decoded. 78 78 */ … … 98 98 #define PCI_CARDBUS_CIS 0x28 99 99 #define PCI_SUBSYSTEM_VENDOR_ID 0x2c 100 #define PCI_SUBSYSTEM_ID 0x2e 100 #define PCI_SUBSYSTEM_ID 0x2e 101 101 #define PCI_ROM_ADDRESS 0x30 /* Bits 31..11 are address, 10..1 reserved */ 102 102 #define PCI_ROM_ADDRESS_ENABLE 0x01 … … 389 389 #define PCI_BRIDGE_RESOURCES 7 390 390 #define PCI_NUM_RESOURCES 11 391 391 392 392 #define PCI_REGION_FLAG_MASK 0x0f /* These bits of resource flags tell us the PCI region flags */ 393 393 … … 517 517 * simple PCI probing for drivers (drivers/pci/helper.c) 518 518 */ 519 519 520 520 struct pci_simple_probe_entry; 521 521 typedef int (*pci_simple_probe_callback) (struct pci_dev *dev, int match_num, -
GPL/trunk/include/linux/time.h
r442 r479 46 46 value->tv_sec = jiffies / HZ; 47 47 } 48 48 49 49 struct timeval { 50 50 time_t tv_sec; /* seconds */ … … 94 94 static __inline__ unsigned int jiffies_to_msecs(const unsigned long j) 95 95 { 96 96 #if (HZ <= 1000 && !(1000 % HZ)) 97 97 return (1000 / HZ) * j; 98 elseif (HZ > 1000 && !(HZ % 1000))98 #elif (HZ > 1000 && !(HZ % 1000)) 99 99 return (j + (HZ / 1000) - 1)/(HZ / 1000); 100 100 #else 101 101 return (j * 1000) / HZ; 102 #endif 102 103 } 103 104 static __inline__ unsigned long msecs_to_jiffies(const unsigned int m) … … 105 106 if (m > jiffies_to_msecs(MAX_JIFFY_OFFSET)) 106 107 return MAX_JIFFY_OFFSET; 107 108 #if (HZ <= 1000 && !(1000 % HZ)) 108 109 return (m + (1000 / HZ) - 1) / (1000 / HZ); 109 elseif (HZ > 1000 && !(HZ % 1000))110 #elif (HZ > 1000 && !(HZ % 1000)) 110 111 return m * (HZ / 1000); 111 112 #else 112 113 return (m * HZ + 999) / 1000; 114 #endif 113 115 } 114 116 #endif
Note:
See TracChangeset
for help on using the changeset viewer.