代码格式修正

This commit is contained in:
fslongjin 2022-07-27 14:37:26 +08:00
parent aacb77e0c6
commit 08181a7bb8
2 changed files with 8 additions and 13 deletions

View File

@ -64,7 +64,7 @@ static int scroll(bool direction, int pixels, bool animation);
* @param precision
* @param flags
*/
static char *write_num(char *str,ul num, int base, int field_width, int precision, int flags);
static char *write_num(char *str, ul num, int base, int field_width, int precision, int flags);
static char *write_float_point_num(char *str, double num, int field_width, int precision, int flags);

View File

@ -6,9 +6,8 @@
#define PORT_PCI_CONFIG_ADDRESS 0xcf8
#define PORT_PCI_CONFIG_DATA 0xcfc
// pci设备结构信息的链表
struct List * pci_device_structure_list = NULL;
struct List *pci_device_structure_list = NULL;
/**
* @brief pci驱动
@ -122,7 +121,6 @@ struct pci_device_structure_pci_to_pci_bridge_t
} __attribute__((packed));
/**
* @brief 0x2pci设备结构PCI to CardBus Bridge
*
@ -162,7 +160,6 @@ struct pci_device_structure_pci_to_cardbus_bridge_t
} __attribute__((packed));
/**
* @brief pci配置空间读取信息
*
@ -194,24 +191,22 @@ uint pci_write_config(uchar bus, uchar slot, uchar func, uchar offset, uint32_t
* @param func
* @return header的指针
*/
void* pci_read_header(int *type, uchar bus, uchar slot, uchar func, bool add_to_list);
void *pci_read_header(int *type, uchar bus, uchar slot, uchar func, bool add_to_list);
/**
* @brief pci总线上的所有设备
*
*
*/
void pci_checkAllBuses();
/**
* @brief device structure
*
* @param class_code
* @param sub_class
*
* @param class_code
* @param sub_class
* @param res
*/
void pci_get_device_structure(uint8_t class_code, uint8_t sub_class, struct pci_device_structure_header_t* res[], uint32_t* count_res);
void pci_get_device_structure(uint8_t class_code, uint8_t sub_class, struct pci_device_structure_header_t *res[], uint32_t *count_res);
/**
* @brief capability list