Appreciate any help to resolve the following compiling error. Liu
Compiling Error:
Source Code:
Compiling Error:
Code:
main.c: In function 'AOC_pci_request_regions':
main.c:>>>: error: dereferencing pointer to incomplete type
main.c:>>>: error: dereferencing pointer to incomplete type
Source Code:
Code:
static int AOC_pci_request_regions( device_t dev, const char *res_name )
{
int i,j;
int rid;
int bar;
struct resource_list_entry *rle;
struct pci_devinfo *dinfo;
struct resource_list *rl;
for ( i = 0; i <= PCIR_MAX_BAR_0; i++ )
{
bar = PCIR_BAR( i );
dinfo = device_get_ivars( dev );
>>> rl = &dinfo->resources;
rle = resource_list_find(rl,SYS_RES_MEMORY,i);
if( rle == NULL )
{
dinfo = device_get_ivars(dev);
>>> rl = &dinfo->resources;
rle=resource_list_find(rl,SYS_RES_IOPORT, i);
};
if( rle == NULL )
return (-ENODEV);
};
…
}