The definition for __stdcall logically belongs in pe_var.h, but
the definitions for NDIS_BUS_SPACE_IO and NDIS_BUS_SPACE_MEM logically belong in hal_var.h. At least, that's my story, and I'm sticking to it. Also, remove definition of __stdcall from if_ndis.c now that it's pulled in from pe_var.h.
This commit is contained in:
parent
ebed999d17
commit
ece759a4da
@ -35,6 +35,14 @@
|
||||
#ifndef _HAL_VAR_H_
|
||||
#define _HAL_VAR_H_
|
||||
|
||||
#ifdef __amd64__
|
||||
#define NDIS_BUS_SPACE_IO AMD64_BUS_SPACE_IO
|
||||
#define NDIS_BUS_SPACE_MEM AMD64_BUS_SPACE_MEM
|
||||
#else
|
||||
#define NDIS_BUS_SPACE_IO I386_BUS_SPACE_IO
|
||||
#define NDIS_BUS_SPACE_MEM I386_BUS_SPACE_MEM
|
||||
#endif
|
||||
|
||||
extern image_patch_table hal_functbl[];
|
||||
|
||||
#endif /* _HAL_VAR_H_ */
|
||||
|
@ -418,12 +418,8 @@ typedef struct image_patch_table image_patch_table;
|
||||
|
||||
#ifdef __amd64__
|
||||
#define __stdcall
|
||||
#define NDIS_BUS_SPACE_IO AMD64_BUS_SPACE_IO
|
||||
#define NDIS_BUS_SPACE_MEM AMD64_BUS_SPACE_MEM
|
||||
#else
|
||||
#define __stdcall __attribute__((__stdcall__))
|
||||
#define NDIS_BUS_SPACE_IO I386_BUS_SPACE_IO
|
||||
#define NDIS_BUS_SPACE_MEM I386_BUS_SPACE_MEM
|
||||
#endif
|
||||
|
||||
__BEGIN_DECLS
|
||||
|
@ -56,6 +56,7 @@ __FBSDID("$FreeBSD$");
|
||||
#include <sys/rman.h>
|
||||
|
||||
#include <compat/ndis/pe_var.h>
|
||||
#include <compat/ndis/hal_var.h>
|
||||
#include <compat/ndis/resource_var.h>
|
||||
#include <compat/ndis/ndis_var.h>
|
||||
#include <compat/ndis/ntoskrnl_var.h>
|
||||
|
@ -93,8 +93,6 @@ static struct ndis_type ndis_devs[] = {
|
||||
{ 0, 0, 0, NULL }
|
||||
};
|
||||
|
||||
#define __stdcall __attribute__((__stdcall__))
|
||||
|
||||
static int ndis_probe (device_t);
|
||||
static int ndis_attach (device_t);
|
||||
static int ndis_detach (device_t);
|
||||
|
Loading…
Reference in New Issue
Block a user