Skip to content

Commit d6f4d0a

Browse files
CV-Bowenxiaoxiang781216
authored andcommitted
drivers/pci: change all devfn type to unsigned int
Now all the type of devfn in pci framework are unsigned int Signed-off-by: Bowen Wang <[email protected]>
1 parent 2756045 commit d6f4d0a

File tree

2 files changed

+13
-9
lines changed

2 files changed

+13
-9
lines changed

drivers/pci/pci.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -959,7 +959,7 @@ static void pci_scan_bus(FAR struct pci_bus_s *bus)
959959
{
960960
FAR struct pci_device_s *dev;
961961
FAR struct pci_bus_s *child_bus;
962-
uint32_t devfn;
962+
unsigned int devfn;
963963
uint32_t l;
964964
uint32_t class;
965965
uint8_t hdr_type;

drivers/pci/pci_ecam.c

Lines changed: 12 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -47,11 +47,13 @@
4747
* Private Function Prototypes
4848
****************************************************************************/
4949

50-
static int pci_ecam_read_config(FAR struct pci_bus_s *bus, uint32_t devfn,
51-
int where, int size, FAR uint32_t *val);
50+
static int pci_ecam_read_config(FAR struct pci_bus_s *bus,
51+
unsigned int devfn, int where, int size,
52+
FAR uint32_t *val);
5253

53-
static int pci_ecam_write_config(FAR struct pci_bus_s *bus, uint32_t devfn,
54-
int where, int size, uint32_t val);
54+
static int pci_ecam_write_config(FAR struct pci_bus_s *bus,
55+
unsigned int devfn, int where, int size,
56+
uint32_t val);
5557

5658
/****************************************************************************
5759
* Private Types
@@ -168,8 +170,9 @@ static bool pci_ecam_addr_valid(FAR const struct pci_bus_s *bus,
168170
*
169171
****************************************************************************/
170172

171-
static int pci_ecam_read_config(FAR struct pci_bus_s *bus, uint32_t devfn,
172-
int where, int size, FAR uint32_t *val)
173+
static int pci_ecam_read_config(FAR struct pci_bus_s *bus,
174+
unsigned int devfn, int where, int size,
175+
FAR uint32_t *val)
173176
{
174177
FAR void *addr;
175178

@@ -225,8 +228,9 @@ static int pci_ecam_read_config(FAR struct pci_bus_s *bus, uint32_t devfn,
225228
*
226229
****************************************************************************/
227230

228-
static int pci_ecam_write_config(FAR struct pci_bus_s *bus, uint32_t devfn,
229-
int where, int size, uint32_t val)
231+
static int pci_ecam_write_config(FAR struct pci_bus_s *bus,
232+
unsigned int devfn, int where, int size,
233+
uint32_t val)
230234
{
231235
FAR void *addr;
232236

0 commit comments

Comments
 (0)