incubator-nuttx/drivers/pci
Bowen Wang 143466baed drivers/pci: fix pci framework warning in 32bit chip
In file included from pci/pci.c:30:
pci/pci.c: In function 'pci_setup_device':
pci/pci.c:449:66: warning: right shift count >= width of type [-Wshift-count-overflow]
  449 |           pci_write_config_dword(dev, base_address_1, res->start >> 32);
      |                                                                  ^~
pci/pci.c: In function 'pci_presetup_bridge':
pci/pci.c:541:51: warning: right shift count >= width of type [-Wshift-count-overflow]
  541 |                              ctrl->mem_pref.start >> 32);
      |                                                   ^~
pci/pci.c: In function 'pci_postsetup_bridge':
pci/pci.c:604:57: warning: right shift count >= width of type [-Wshift-count-overflow]
  604 |                              (ctrl->mem_pref.start - 1) >> 32);
      |                                                         ^~
CC:  pthread/pthread_release.c pci/pci_ecam.c:71:12: warning: initialization of 'int (*)(struct pci_bus_s *, unsigned int,  int,  int,  uint32_t *)' {aka 'int (*)(struct pci_bus_s *, unsigned int,  int,  int,  long unsigned int *)'} from incompatible pointer type 'int (*)(struct pci_bus_s *, uint32_t,  int,  int,  uint32_t *)' {aka 'int (*)(struct pci_bus_s *, long unsigned int,  int,  int,  long unsigned int *)'} [-Wincompatible-pointer-types]
   71 |   .read  = pci_ecam_read_config,
      |            ^~~~~~~~~~~~~~~~~~~~
pci/pci_ecam.c:71:12: note: (near initialization for 'g_pci_ecam_ops.read')
pci/pci_ecam.c:72:12: warning: initialization of 'int (*)(struct pci_bus_s *, unsigned int,  int,  int,  uint32_t)' {aka 'int (*)(struct pci_bus_s *, unsigned int,  int,  int,  long unsigned int)'} from incompatible pointer type 'int (*)(struct pci_bus_s *, uint32_t,  int,  int,  uint32_t)' {aka 'int (*)(struct pci_bus_s *, long unsigned int,  int,  int,  long unsigned int)'} [-Wincompatible-pointer-types]
   72 |   .write = pci_ecam_write_config,

Signed-off-by: Bowen Wang <wangbowen6@xiaomi.com>
2024-10-13 02:28:32 +08:00
..
CMakeLists.txt pci test drv is pci rc drv not pci ep drv 2024-10-09 13:52:01 +08:00
Kconfig pci test drv is pci rc drv not pci ep drv 2024-10-09 13:52:01 +08:00
Make.defs pci test drv is pci rc drv not pci ep drv 2024-10-09 13:52:01 +08:00
pci.c drivers/pci: fix pci framework warning in 32bit chip 2024-10-13 02:28:32 +08:00
pci_drivers.c pci_drivers: move qemu edu and test device header content to pci_drivers.h 2024-10-09 13:52:01 +08:00
pci_drivers.h pci_drivers: move qemu edu and test device header content to pci_drivers.h 2024-10-09 13:52:01 +08:00
pci_ecam.c include/nuttx.h: replace all the align macros to nuttx version 2024-10-11 16:55:43 +08:00
pci_ep_test.c pci: msi and msix irq need release irq 2024-10-08 18:04:13 +08:00
pci_epc.c msi_set:Message Control Register for MSI:bit3:bit1 used for 2024-09-27 10:37:31 +08:00
pci_epc_mem.c pci epc mem use virtual mem 2024-09-27 10:37:31 +08:00
pci_epf.c include/nuttx.h: add common align definitions for nuttx 2024-10-09 13:52:01 +08:00
pci_epf_test.c QemuEPC multi function verify for pci 2024-09-28 13:39:50 +08:00
pci_ivshmem.c pci_ivshmem.c: ivshmem_support_irq API support 2024-10-12 12:13:23 +08:00
pci_qemu_edu.c pci_drivers: move qemu edu and test device header content to pci_drivers.h 2024-10-09 13:52:01 +08:00
pci_qemu_epc.c qemu_epc_get_msi: flag should use msi enable flag 2024-10-09 15:07:37 +08:00
pci_qemu_test.c pci_drivers: move qemu edu and test device header content to pci_drivers.h 2024-10-09 13:52:01 +08:00
pci_uio_ivshmem.c pci/ivshmem: Skip unregistering ivshmem driver 2024-10-05 12:05:13 -03:00