From 120be173de41bad64ec273fb576688557712eb9b Mon Sep 17 00:00:00 2001 From: "H. Peter Anvin" Date: Fri, 29 May 2009 15:10:22 -0700 Subject: Run Nindent on com32/include/sys/cpu.h Automatically reformat com32/include/sys/cpu.h using Nindent. Do this for all files except HDT, gPXE and externally maintained libraries (zlib, tinyjpeg, libpng). Signed-off-by: H. Peter Anvin --- com32/include/sys/cpu.h | 95 ++++++++++++++++++++++++------------------------- 1 file changed, 46 insertions(+), 49 deletions(-) (limited to 'com32/include/sys') diff --git a/com32/include/sys/cpu.h b/com32/include/sys/cpu.h index fcae2da1..dfba02e7 100644 --- a/com32/include/sys/cpu.h +++ b/com32/include/sys/cpu.h @@ -7,108 +7,105 @@ static inline uint64_t rdtsc(void) { - uint64_t v; - asm volatile("rdtsc" : "=A" (v)); - return v; + uint64_t v; + asm volatile ("rdtsc":"=A" (v)); + return v; } static inline uint32_t rdtscl(void) { - uint32_t v; - asm volatile("rdtsc" : "=a" (v) : : "edx"); - return v; + uint32_t v; + asm volatile ("rdtsc":"=a" (v)::"edx"); + return v; } static inline void cpuid_count(uint32_t op, uint32_t cnt, - uint32_t *eax, uint32_t *ebx, - uint32_t *ecx, uint32_t *edx) + uint32_t * eax, uint32_t * ebx, + uint32_t * ecx, uint32_t * edx) { - asm("cpuid" - : "=a" (*eax), "=b" (*ebx), "=c" (*ecx), "=d" (*edx) - : "a" (op), "c" (cnt)); +asm("cpuid":"=a"(*eax), "=b"(*ebx), "=c"(*ecx), "=d"(*edx) +: "a"(op), "c"(cnt)); } -static inline void cpuid(uint32_t op, uint32_t *eax, uint32_t *ebx, - uint32_t *ecx, uint32_t *edx) + +static inline void cpuid(uint32_t op, uint32_t * eax, uint32_t * ebx, + uint32_t * ecx, uint32_t * edx) { - cpuid_count(op, 0, eax, ebx, ecx, edx); + cpuid_count(op, 0, eax, ebx, ecx, edx); } + static inline __constfunc uint32_t cpuid_eax(uint32_t level) { - uint32_t v; + uint32_t v; - asm("cpuid" : "=a" (v) : "a" (level) : "ebx", "ecx", "edx"); - return v; +asm("cpuid": "=a"(v): "a"(level):"ebx", "ecx", "edx"); + return v; } + static inline __constfunc uint32_t cpuid_ebx(uint32_t level) { - uint32_t v; + uint32_t v; - asm("cpuid" : "=b" (v), "+a" (level) : : "ecx", "edx"); - return v; +asm("cpuid": "=b"(v), "+a"(level): :"ecx", "edx"); + return v; } + static inline __constfunc uint32_t cpuid_ecx(uint32_t level) { - uint32_t v; + uint32_t v; - asm("cpuid" : "=c" (v), "+a" (level) : : "ebx", "edx"); - return v; +asm("cpuid": "=c"(v), "+a"(level): :"ebx", "edx"); + return v; } + static inline __constfunc uint32_t cpuid_edx(uint32_t level) { - uint32_t v; + uint32_t v; - asm("cpuid" : "=d" (v), "+a" (level) : : "ebx", "ecx"); - return v; +asm("cpuid": "=d"(v), "+a"(level): :"ebx", "ecx"); + return v; } /* Standard macro to see if a specific flag is changeable */ static inline __constfunc bool cpu_has_eflag(uint32_t flag) { - uint32_t f1, f2; - - asm("pushfl\n\t" - "pushfl\n\t" - "popl %0\n\t" - "movl %0,%1\n\t" - "xorl %2,%0\n\t" - "pushl %0\n\t" - "popfl\n\t" - "pushfl\n\t" - "popl %0\n\t" - "popfl\n\t" - : "=&r" (f1), "=&r" (f2) - : "ir" (flag)); - - return ((f1^f2) & flag) != 0; + uint32_t f1, f2; + +asm("pushfl\n\t" "pushfl\n\t" "popl %0\n\t" "movl %0,%1\n\t" "xorl %2,%0\n\t" "pushl %0\n\t" "popfl\n\t" "pushfl\n\t" "popl %0\n\t" "popfl\n\t":"=&r"(f1), + "=&r" + (f2) +: "ir"(flag)); + + return ((f1 ^ f2) & flag) != 0; } static inline uint64_t rdmsr(uint32_t msr) { - uint64_t v; + uint64_t v; - asm volatile("rdmsr" : "=A" (v) : "c" (msr)); - return v; + asm volatile ("rdmsr":"=A" (v):"c"(msr)); + return v; } + static inline void wrmsr(uint64_t v, uint32_t msr) { - asm volatile("wrmsr" : : "A" (v), "c" (msr)); + asm volatile ("wrmsr"::"A" (v), "c"(msr)); } static inline void cpu_relax(void) { - asm volatile("rep ; nop"); + asm volatile ("rep ; nop"); } /* These are local cli/sti; not SMP-safe!!! */ static inline void cli(void) { - asm volatile("cli"); + asm volatile ("cli"); } static inline void sti(void) { - asm volatile("sti"); + asm volatile ("sti"); } #endif -- cgit v1.2.1 From b8d58b318aac742780c2cf855db9da016d0c4f48 Mon Sep 17 00:00:00 2001 From: "H. Peter Anvin" Date: Fri, 29 May 2009 15:10:22 -0700 Subject: Run Nindent on com32/include/sys/elf32.h Automatically reformat com32/include/sys/elf32.h using Nindent. Do this for all files except HDT, gPXE and externally maintained libraries (zlib, tinyjpeg, libpng). Signed-off-by: H. Peter Anvin --- com32/include/sys/elf32.h | 104 +++++++++++++++++++++++----------------------- 1 file changed, 52 insertions(+), 52 deletions(-) (limited to 'com32/include/sys') diff --git a/com32/include/sys/elf32.h b/com32/include/sys/elf32.h index e4df8cec..c98c274b 100644 --- a/com32/include/sys/elf32.h +++ b/com32/include/sys/elf32.h @@ -22,11 +22,11 @@ typedef uint16_t Elf32_Section; /* Dynamic header */ typedef struct elf32_dyn { - Elf32_Sword d_tag; - union { - Elf32_Sword d_val; - Elf32_Addr d_ptr; - } d_un; + Elf32_Sword d_tag; + union { + Elf32_Sword d_val; + Elf32_Addr d_ptr; + } d_un; } Elf32_Dyn; /* Relocations */ @@ -35,79 +35,79 @@ typedef struct elf32_dyn { #define ELF32_R_TYPE(x) ((x) & 0xff) typedef struct elf32_rel { - Elf32_Addr r_offset; - Elf32_Word r_info; + Elf32_Addr r_offset; + Elf32_Word r_info; } Elf32_Rel; typedef struct elf32_rela { - Elf32_Addr r_offset; - Elf32_Word r_info; - Elf32_Sword r_addend; + Elf32_Addr r_offset; + Elf32_Word r_info; + Elf32_Sword r_addend; } Elf32_Rela; /* Symbol */ typedef struct elf32_sym { - Elf32_Word st_name; - Elf32_Addr st_value; - Elf32_Word st_size; - unsigned char st_info; - unsigned char st_other; - Elf32_Half st_shndx; + Elf32_Word st_name; + Elf32_Addr st_value; + Elf32_Word st_size; + unsigned char st_info; + unsigned char st_other; + Elf32_Half st_shndx; } Elf32_Sym; /* Main file header */ typedef struct elf32_hdr { - unsigned char e_ident[EI_NIDENT]; - Elf32_Half e_type; - Elf32_Half e_machine; - Elf32_Word e_version; - Elf32_Addr e_entry; - Elf32_Off e_phoff; - Elf32_Off e_shoff; - Elf32_Word e_flags; - Elf32_Half e_ehsize; - Elf32_Half e_phentsize; - Elf32_Half e_phnum; - Elf32_Half e_shentsize; - Elf32_Half e_shnum; - Elf32_Half e_shstrndx; + unsigned char e_ident[EI_NIDENT]; + Elf32_Half e_type; + Elf32_Half e_machine; + Elf32_Word e_version; + Elf32_Addr e_entry; + Elf32_Off e_phoff; + Elf32_Off e_shoff; + Elf32_Word e_flags; + Elf32_Half e_ehsize; + Elf32_Half e_phentsize; + Elf32_Half e_phnum; + Elf32_Half e_shentsize; + Elf32_Half e_shnum; + Elf32_Half e_shstrndx; } Elf32_Ehdr; /* Program header */ typedef struct elf32_phdr { - Elf32_Word p_type; - Elf32_Off p_offset; - Elf32_Addr p_vaddr; - Elf32_Addr p_paddr; - Elf32_Word p_filesz; - Elf32_Word p_memsz; - Elf32_Word p_flags; - Elf32_Word p_align; + Elf32_Word p_type; + Elf32_Off p_offset; + Elf32_Addr p_vaddr; + Elf32_Addr p_paddr; + Elf32_Word p_filesz; + Elf32_Word p_memsz; + Elf32_Word p_flags; + Elf32_Word p_align; } Elf32_Phdr; /* Section header */ typedef struct elf32_shdr { - Elf32_Word sh_name; - Elf32_Word sh_type; - Elf32_Word sh_flags; - Elf32_Addr sh_addr; - Elf32_Off sh_offset; - Elf32_Word sh_size; - Elf32_Word sh_link; - Elf32_Word sh_info; - Elf32_Word sh_addralign; - Elf32_Word sh_entsize; + Elf32_Word sh_name; + Elf32_Word sh_type; + Elf32_Word sh_flags; + Elf32_Addr sh_addr; + Elf32_Off sh_offset; + Elf32_Word sh_size; + Elf32_Word sh_link; + Elf32_Word sh_info; + Elf32_Word sh_addralign; + Elf32_Word sh_entsize; } Elf32_Shdr; /* Note header */ typedef struct elf32_note { - Elf32_Word n_namesz; /* Name size */ - Elf32_Word n_descsz; /* Content size */ - Elf32_Word n_type; /* Content type */ + Elf32_Word n_namesz; /* Name size */ + Elf32_Word n_descsz; /* Content size */ + Elf32_Word n_type; /* Content type */ } Elf32_Nhdr; -#endif /* _SYS_ELF32_H */ +#endif /* _SYS_ELF32_H */ -- cgit v1.2.1 From 1588450960f95bf4915b85244c97af9f136d6d82 Mon Sep 17 00:00:00 2001 From: "H. Peter Anvin" Date: Fri, 29 May 2009 15:10:22 -0700 Subject: Run Nindent on com32/include/sys/elf64.h Automatically reformat com32/include/sys/elf64.h using Nindent. Do this for all files except HDT, gPXE and externally maintained libraries (zlib, tinyjpeg, libpng). Signed-off-by: H. Peter Anvin --- com32/include/sys/elf64.h | 104 +++++++++++++++++++++++----------------------- 1 file changed, 52 insertions(+), 52 deletions(-) (limited to 'com32/include/sys') diff --git a/com32/include/sys/elf64.h b/com32/include/sys/elf64.h index 0b486ac2..a76fc989 100644 --- a/com32/include/sys/elf64.h +++ b/com32/include/sys/elf64.h @@ -22,11 +22,11 @@ typedef uint16_t Elf64_Section; /* Dynamic header */ typedef struct elf64_dyn { - Elf64_Sxword d_tag; - union { - Elf64_Xword d_val; - Elf64_Addr d_ptr; - } d_un; + Elf64_Sxword d_tag; + union { + Elf64_Xword d_val; + Elf64_Addr d_ptr; + } d_un; } Elf64_Dyn; /* Relocations */ @@ -35,79 +35,79 @@ typedef struct elf64_dyn { #define ELF64_R_TYPE(x) ((x) & 0xffffffff) typedef struct elf64_rel { - Elf64_Addr r_offset; - Elf64_Xword r_info; + Elf64_Addr r_offset; + Elf64_Xword r_info; } Elf64_Rel; typedef struct elf64_rela { - Elf64_Addr r_offset; - Elf64_Xword r_info; - Elf64_Sxword r_addend; + Elf64_Addr r_offset; + Elf64_Xword r_info; + Elf64_Sxword r_addend; } Elf64_Rela; /* Symbol */ typedef struct elf64_sym { - Elf64_Word st_name; - unsigned char st_info; - unsigned char st_other; - Elf64_Half st_shndx; - Elf64_Addr st_value; - Elf64_Xword st_size; + Elf64_Word st_name; + unsigned char st_info; + unsigned char st_other; + Elf64_Half st_shndx; + Elf64_Addr st_value; + Elf64_Xword st_size; } Elf64_Sym; /* Main file header */ typedef struct elf64_hdr { - unsigned char e_ident[EI_NIDENT]; - Elf64_Half e_type; - Elf64_Half e_machine; - Elf64_Word e_version; - Elf64_Addr e_entry; - Elf64_Off e_phoff; - Elf64_Off e_shoff; - Elf64_Word e_flags; - Elf64_Half e_ehsize; - Elf64_Half e_phentsize; - Elf64_Half e_phnum; - Elf64_Half e_shentsize; - Elf64_Half e_shnum; - Elf64_Half e_shstrndx; + unsigned char e_ident[EI_NIDENT]; + Elf64_Half e_type; + Elf64_Half e_machine; + Elf64_Word e_version; + Elf64_Addr e_entry; + Elf64_Off e_phoff; + Elf64_Off e_shoff; + Elf64_Word e_flags; + Elf64_Half e_ehsize; + Elf64_Half e_phentsize; + Elf64_Half e_phnum; + Elf64_Half e_shentsize; + Elf64_Half e_shnum; + Elf64_Half e_shstrndx; } Elf64_Ehdr; /* Program header */ typedef struct elf64_phdr { - Elf64_Word p_type; - Elf64_Word p_flags; - Elf64_Off p_offset; - Elf64_Addr p_vaddr; - Elf64_Addr p_paddr; - Elf64_Xword p_filesz; - Elf64_Xword p_memsz; - Elf64_Xword p_align; + Elf64_Word p_type; + Elf64_Word p_flags; + Elf64_Off p_offset; + Elf64_Addr p_vaddr; + Elf64_Addr p_paddr; + Elf64_Xword p_filesz; + Elf64_Xword p_memsz; + Elf64_Xword p_align; } Elf64_Phdr; /* Section header */ typedef struct elf64_shdr { - Elf64_Word sh_name; - Elf64_Word sh_type; - Elf64_Xword sh_flags; - Elf64_Addr sh_addr; - Elf64_Off sh_offset; - Elf64_Xword sh_size; - Elf64_Word sh_link; - Elf64_Word sh_info; - Elf64_Xword sh_addralign; - Elf64_Xword sh_entsize; + Elf64_Word sh_name; + Elf64_Word sh_type; + Elf64_Xword sh_flags; + Elf64_Addr sh_addr; + Elf64_Off sh_offset; + Elf64_Xword sh_size; + Elf64_Word sh_link; + Elf64_Word sh_info; + Elf64_Xword sh_addralign; + Elf64_Xword sh_entsize; } Elf64_Shdr; /* Note header */ typedef struct elf64_note { - Elf64_Word n_namesz; /* Name size */ - Elf64_Word n_descsz; /* Content size */ - Elf64_Word n_type; /* Content type */ + Elf64_Word n_namesz; /* Name size */ + Elf64_Word n_descsz; /* Content size */ + Elf64_Word n_type; /* Content type */ } Elf64_Nhdr; -#endif /* _SYS_ELF64_H */ +#endif /* _SYS_ELF64_H */ -- cgit v1.2.1 From adef2ba6699c233ab7bf2dbd7bb32fa3b5023a40 Mon Sep 17 00:00:00 2001 From: "H. Peter Anvin" Date: Fri, 29 May 2009 15:10:22 -0700 Subject: Run Nindent on com32/include/sys/elfcommon.h Automatically reformat com32/include/sys/elfcommon.h using Nindent. Do this for all files except HDT, gPXE and externally maintained libraries (zlib, tinyjpeg, libpng). Signed-off-by: H. Peter Anvin --- com32/include/sys/elfcommon.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'com32/include/sys') diff --git a/com32/include/sys/elfcommon.h b/com32/include/sys/elfcommon.h index cc8f9235..2489e3c0 100644 --- a/com32/include/sys/elfcommon.h +++ b/com32/include/sys/elfcommon.h @@ -184,4 +184,4 @@ #define ELFOSABI_NONE 0 #define ELFOSABI_LINUX 3 -#endif /* _SYS_ELFCOMMON_H */ +#endif /* _SYS_ELFCOMMON_H */ -- cgit v1.2.1 From 7ab99450edfc79d124d658c809130f1b58a0d9e4 Mon Sep 17 00:00:00 2001 From: "H. Peter Anvin" Date: Fri, 29 May 2009 15:10:22 -0700 Subject: Run Nindent on com32/include/sys/io.h Automatically reformat com32/include/sys/io.h using Nindent. Do this for all files except HDT, gPXE and externally maintained libraries (zlib, tinyjpeg, libpng). Signed-off-by: H. Peter Anvin --- com32/include/sys/io.h | 24 ++++++++++++------------ 1 file changed, 12 insertions(+), 12 deletions(-) (limited to 'com32/include/sys') diff --git a/com32/include/sys/io.h b/com32/include/sys/io.h index 460f2309..96f8960e 100644 --- a/com32/include/sys/io.h +++ b/com32/include/sys/io.h @@ -5,38 +5,38 @@ static inline uint8_t inb(uint16_t p) { - uint8_t v; - asm volatile("inb %1,%0" : "=a" (v) : "Nd" (p)); - return v; + uint8_t v; + asm volatile ("inb %1,%0":"=a" (v):"Nd"(p)); + return v; } static inline uint16_t inw(uint16_t p) { - uint16_t v; - asm volatile("inw %1,%0" : "=a" (v) : "Nd" (p)); - return v; + uint16_t v; + asm volatile ("inw %1,%0":"=a" (v):"Nd"(p)); + return v; } static inline uint32_t inl(uint16_t p) { - uint32_t v; - asm volatile("inl %1,%0" : "=a" (v) : "Nd" (p)); - return v; + uint32_t v; + asm volatile ("inl %1,%0":"=a" (v):"Nd"(p)); + return v; } static inline void outb(uint8_t v, uint16_t p) { - asm volatile("outb %0,%1" : : "a" (v), "Nd" (p)); + asm volatile ("outb %0,%1"::"a" (v), "Nd"(p)); } static inline void outw(uint16_t v, uint16_t p) { - asm volatile("outw %0,%1" : : "a" (v), "Nd" (p)); + asm volatile ("outw %0,%1"::"a" (v), "Nd"(p)); } static inline void outl(uint32_t v, uint16_t p) { - asm volatile("outl %0,%1" : : "a" (v), "Nd" (p)); + asm volatile ("outl %0,%1"::"a" (v), "Nd"(p)); } #endif /* _SYS_IO_H */ -- cgit v1.2.1 From 787e9c9ad35f143bd9674fb44eb82f3796246d8d Mon Sep 17 00:00:00 2001 From: "H. Peter Anvin" Date: Fri, 29 May 2009 15:10:22 -0700 Subject: Run Nindent on com32/include/sys/pci.h Automatically reformat com32/include/sys/pci.h using Nindent. Do this for all files except HDT, gPXE and externally maintained libraries (zlib, tinyjpeg, libpng). Signed-off-by: H. Peter Anvin --- com32/include/sys/pci.h | 103 +++++++++++++++++++++++++----------------------- 1 file changed, 53 insertions(+), 50 deletions(-) (limited to 'com32/include/sys') diff --git a/com32/include/sys/pci.h b/com32/include/sys/pci.h index b6556ff0..2c6b5158 100644 --- a/com32/include/sys/pci.h +++ b/com32/include/sys/pci.h @@ -17,57 +17,58 @@ typedef uint32_t pciaddr_t; enum { - ENOPCIIDS = 100, - ENOMODULESPCIMAP + ENOPCIIDS = 100, + ENOMODULESPCIMAP }; /* a structure for extended pci information */ /* XXX: use pointers for these? */ struct pci_dev_info { - char vendor_name[PCI_VENDOR_NAME_SIZE]; - char product_name[PCI_PRODUCT_NAME_SIZE]; - char linux_kernel_module[LINUX_KERNEL_MODULE_SIZE][MAX_KERNEL_MODULES_PER_PCI_DEVICE]; - int linux_kernel_module_count; - char class_name[PCI_CLASS_NAME_SIZE]; /* The most precise class name */ - char category_name[PCI_CLASS_NAME_SIZE]; /*The general category*/ - uint8_t irq; - uint8_t latency; + char vendor_name[PCI_VENDOR_NAME_SIZE]; + char product_name[PCI_PRODUCT_NAME_SIZE]; + char linux_kernel_module[LINUX_KERNEL_MODULE_SIZE] + [MAX_KERNEL_MODULES_PER_PCI_DEVICE]; + int linux_kernel_module_count; + char class_name[PCI_CLASS_NAME_SIZE]; /* The most precise class name */ + char category_name[PCI_CLASS_NAME_SIZE]; /*The general category */ + uint8_t irq; + uint8_t latency; }; /* PCI device (really, function) */ struct pci_device { - union { - struct { - uint16_t vendor; - uint16_t product; - uint16_t sub_vendor; - uint16_t sub_product; - uint8_t revision; - uint8_t class[3]; + union { + struct { + uint16_t vendor; + uint16_t product; + uint16_t sub_vendor; + uint16_t sub_product; + uint8_t revision; + uint8_t class[3]; + }; + struct { + uint32_t vid_did; + uint32_t svid_sdid; + uint32_t rid_class; + }; }; - struct { - uint32_t vid_did; - uint32_t svid_sdid; - uint32_t rid_class; - }; - }; - struct pci_dev_info *dev_info; - struct pci_device *next; + struct pci_dev_info *dev_info; + struct pci_device *next; }; /* PCI device ("slot") structure */ struct pci_slot { - struct pci_device *func[MAX_PCI_FUNC]; + struct pci_device *func[MAX_PCI_FUNC]; }; /* PCI bus structure */ struct pci_bus { - struct pci_slot *slot[MAX_PCI_DEVICES]; + struct pci_slot *slot[MAX_PCI_DEVICES]; }; /* PCI domain structure */ struct pci_domain { - struct pci_bus *bus[MAX_PCI_BUSES]; + struct pci_bus *bus[MAX_PCI_BUSES]; }; /* Iterate over a PCI domain */ @@ -91,43 +92,43 @@ struct pci_domain { func[__pci_func])) struct match { - struct match *next; - uint32_t did; - uint32_t did_mask; - uint32_t sid; - uint32_t sid_mask; - uint8_t rid_min, rid_max; - char *filename; + struct match *next; + uint32_t did; + uint32_t did_mask; + uint32_t sid; + uint32_t sid_mask; + uint8_t rid_min, rid_max; + char *filename; }; static inline pciaddr_t pci_mkaddr(uint32_t bus, uint32_t dev, uint32_t func, uint32_t reg) { - return 0x80000000 | ((bus & 0xff) << 16) | ((dev & 0x1f) << 11) | - ((func & 0x07) << 8) | (reg & 0xff); + return 0x80000000 | ((bus & 0xff) << 16) | ((dev & 0x1f) << 11) | + ((func & 0x07) << 8) | (reg & 0xff); } static inline int pci_bus(pciaddr_t addr) { - return (addr >> 16) & 0xff; + return (addr >> 16) & 0xff; } static inline int pci_dev(pciaddr_t addr) { - return (addr >> 11) & 0x1f; + return (addr >> 11) & 0x1f; } static inline int pci_func(pciaddr_t addr) { - return (addr >> 8) & 0x07; + return (addr >> 8) & 0x07; } enum pci_config_type { - PCI_CFG_NONE = -1, /* badness */ - PCI_CFG_AUTO = 0, /* autodetect */ - PCI_CFG_TYPE1 = 1, - PCI_CFG_TYPE2 = 2, - PCI_CFG_BIOS = 3, + PCI_CFG_NONE = -1, /* badness */ + PCI_CFG_AUTO = 0, /* autodetect */ + PCI_CFG_TYPE1 = 1, + PCI_CFG_TYPE2 = 2, + PCI_CFG_BIOS = 3, }; enum pci_config_type pci_set_config_type(enum pci_config_type); @@ -141,10 +142,12 @@ void pci_writel(uint32_t, pciaddr_t); struct pci_domain *pci_scan(void); void free_pci_domain(struct pci_domain *domain); -struct match * find_pci_device(const struct pci_domain *pci_domain, - struct match *list); +struct match *find_pci_device(const struct pci_domain *pci_domain, + struct match *list); int get_name_from_pci_ids(struct pci_domain *pci_domain, char *pciids_path); -int get_module_name_from_pcimap(struct pci_domain *pci_domain, char *modules_pcimap_path); -int get_class_name_from_pci_ids(struct pci_domain *pci_domain, char *pciids_path); +int get_module_name_from_pcimap(struct pci_domain *pci_domain, + char *modules_pcimap_path); +int get_class_name_from_pci_ids(struct pci_domain *pci_domain, + char *pciids_path); void gather_additional_pci_config(struct pci_domain *domain); #endif /* _SYS_PCI_H */ -- cgit v1.2.1 From c2d5589662079c04983add3a292f89cf55c9e1e9 Mon Sep 17 00:00:00 2001 From: "H. Peter Anvin" Date: Fri, 29 May 2009 15:10:22 -0700 Subject: Run Nindent on com32/include/sys/stat.h Automatically reformat com32/include/sys/stat.h using Nindent. Do this for all files except HDT, gPXE and externally maintained libraries (zlib, tinyjpeg, libpng). Signed-off-by: H. Peter Anvin --- com32/include/sys/stat.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'com32/include/sys') diff --git a/com32/include/sys/stat.h b/com32/include/sys/stat.h index ffc41059..41cdf57b 100644 --- a/com32/include/sys/stat.h +++ b/com32/include/sys/stat.h @@ -42,8 +42,8 @@ /* These are the only fields in struct stat we emulate */ struct stat { - mode_t st_mode; - off_t st_size; + mode_t st_mode; + off_t st_size; }; /* Only fstat() supported */ -- cgit v1.2.1 From 803d724afa08f2374082670b0aed1dd53a9924af Mon Sep 17 00:00:00 2001 From: "H. Peter Anvin" Date: Fri, 29 May 2009 15:10:22 -0700 Subject: Run Nindent on com32/include/sys/times.h Automatically reformat com32/include/sys/times.h using Nindent. Do this for all files except HDT, gPXE and externally maintained libraries (zlib, tinyjpeg, libpng). Signed-off-by: H. Peter Anvin --- com32/include/sys/times.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'com32/include/sys') diff --git a/com32/include/sys/times.h b/com32/include/sys/times.h index dd60a3c5..961c7b6d 100644 --- a/com32/include/sys/times.h +++ b/com32/include/sys/times.h @@ -8,7 +8,7 @@ #include struct tms { - /* Empty */ + /* Empty */ }; #define HZ 18 /* Piddly resolution... */ -- cgit v1.2.1 From 3128ce7a23766ebcc101867b01b5359e5fe82b91 Mon Sep 17 00:00:00 2001 From: "H. Peter Anvin" Date: Fri, 29 May 2009 15:10:22 -0700 Subject: Run Nindent on com32/include/sys/types.h Automatically reformat com32/include/sys/types.h using Nindent. Do this for all files except HDT, gPXE and externally maintained libraries (zlib, tinyjpeg, libpng). Signed-off-by: H. Peter Anvin --- com32/include/sys/types.h | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'com32/include/sys') diff --git a/com32/include/sys/types.h b/com32/include/sys/types.h index 2ab518c0..5279a49e 100644 --- a/com32/include/sys/types.h +++ b/com32/include/sys/types.h @@ -9,8 +9,8 @@ #include #include -typedef ptrdiff_t ssize_t; -typedef int mode_t; -typedef size_t off_t; +typedef ptrdiff_t ssize_t; +typedef int mode_t; +typedef size_t off_t; #endif -- cgit v1.2.1