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:
Bill Paul 2004-01-15 21:31:49 +00:00
parent ebed999d17
commit ece759a4da
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=124576
4 changed files with 9 additions and 6 deletions

View File

@ -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_ */

View File

@ -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

View File

@ -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>

View File

@ -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);