Implement NdisGetBufferPhysicalArraySize(), which apparently is a
synonym for NDIS_BUFFER_TO_SPAN_PAGES().
This commit is contained in:
parent
1c86761b2a
commit
c78ee30919
@ -204,6 +204,7 @@ __stdcall static void ndis_register_shutdown(ndis_handle, void *,
|
||||
ndis_shutdown_handler);
|
||||
__stdcall static void ndis_deregister_shutdown(ndis_handle);
|
||||
__stdcall static uint32_t ndis_numpages(ndis_buffer *);
|
||||
__stdcall static void ndis_buf_physpages(ndis_buffer *, uint32_t *);
|
||||
__stdcall static void ndis_query_bufoffset(ndis_buffer *,
|
||||
uint32_t *, uint32_t *);
|
||||
__stdcall static void ndis_sleep(uint32_t);
|
||||
@ -1837,6 +1838,15 @@ ndis_numpages(buf)
|
||||
return(SPAN_PAGES(buf->nb_mappedsystemva, buf->nb_bytecount));
|
||||
}
|
||||
|
||||
__stdcall static void
|
||||
ndis_buf_physpages(buf, pages)
|
||||
ndis_buffer *buf;
|
||||
uint32_t *pages;
|
||||
{
|
||||
*pages = ndis_numpages(buf);
|
||||
return;
|
||||
}
|
||||
|
||||
__stdcall static void
|
||||
ndis_query_bufoffset(buf, off, len)
|
||||
ndis_buffer *buf;
|
||||
@ -2088,6 +2098,7 @@ dummy()
|
||||
}
|
||||
|
||||
image_patch_table ndis_functbl[] = {
|
||||
{ "NdisGetBufferPhysicalArraySize", (FUNC)ndis_buf_physpages },
|
||||
{ "NdisMGetDeviceProperty", (FUNC)ndis_get_devprop },
|
||||
{ "NdisInitAnsiString", (FUNC)ndis_init_ansi_string },
|
||||
{ "NdisWriteConfiguration", (FUNC)ndis_write_cfg },
|
||||
|
Loading…
x
Reference in New Issue
Block a user