mirror of
https://github.com/DragonOS-Community/DragonOS.git
synced 2025-06-14 12:06:48 +00:00
代码格式修正
This commit is contained in:
parent
aacb77e0c6
commit
08181a7bb8
@ -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);
|
||||
|
||||
|
@ -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 表头类型为0x2的pci设备结构(PCI to CardBus Bridge)
|
||||
*
|
||||
@ -162,7 +160,6 @@ struct pci_device_structure_pci_to_cardbus_bridge_t
|
||||
|
||||
} __attribute__((packed));
|
||||
|
||||
|
||||
/**
|
||||
* @brief 从pci配置空间读取信息
|
||||
*
|
||||
@ -194,7 +191,7 @@ 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总线上的所有设备
|
||||
@ -202,8 +199,6 @@ void* pci_read_header(int *type, uchar bus, uchar slot, uchar func, bool add_to_
|
||||
*/
|
||||
void pci_checkAllBuses();
|
||||
|
||||
|
||||
|
||||
/**
|
||||
* @brief 获取 device structure
|
||||
*
|
||||
@ -211,7 +206,7 @@ void pci_checkAllBuses();
|
||||
* @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
|
||||
|
Loading…
x
Reference in New Issue
Block a user