File: wrapper.h

package info (click to toggle)
ndiswrapper 1.1-4
  • links: PTS
  • area: main
  • in suites: sarge
  • size: 732 kB
  • ctags: 3,458
  • sloc: ansic: 14,609; perl: 956; makefile: 313; asm: 144; sh: 120
file content (49 lines) | stat: -rw-r--r-- 1,940 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
/*
 *  Copyright (C) 2003-2005 Pontus Fuchs, Giridhar Pemmasani
 *
 *  This program is free software; you can redistribute it and/or modify
 *  it under the terms of the GNU General Public License as published by
 *  the Free Software Foundation; either version 2 of the License, or
 *  (at your option) any later version.
 *
 *  This program is distributed in the hope that it will be useful,
 *  but WITHOUT ANY WARRANTY; without even the implied warranty of
 *  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
 *  GNU General Public License for more details.
 *
 */

#ifndef WRAPPER_H
#define WRAPPER_H

#include "ndis.h"

NDIS_STATUS miniport_reset(struct ndis_handle *handle);
NDIS_STATUS miniport_query_info_needed(struct ndis_handle *handle,
				       ndis_oid oid, void *buf,
				       ULONG bufsize, ULONG *needed);
NDIS_STATUS miniport_query_info(struct ndis_handle *handle, ndis_oid oid,
				void *buf, ULONG bufsize);
NDIS_STATUS miniport_set_info(struct ndis_handle *handle, ndis_oid oid,
			      void *buf, ULONG bufsize);
NDIS_STATUS miniport_query_int(struct ndis_handle *handle, ndis_oid oid,
			       void *data);
NDIS_STATUS miniport_set_int(struct ndis_handle *handle, ndis_oid oid,
			     ULONG data);
NDIS_STATUS miniport_init(struct ndis_handle *handle);
void miniport_halt(struct ndis_handle *handle);
void hangcheck_add(struct ndis_handle *handle);
void hangcheck_del(struct ndis_handle *handle);
void sendpacket_done(struct ndis_handle *handle, struct ndis_packet *packet);
int ndiswrapper_suspend_pci(struct pci_dev *pdev, u32 state);
int ndiswrapper_resume_pci(struct pci_dev *pdev);

void ndiswrapper_remove_one_dev(struct ndis_handle *handle);
int ndis_reinit(struct ndis_handle *handle);
int setup_dev(struct net_device *dev);

struct net_device *ndis_init_netdev(struct ndis_handle **phandle,
				    struct ndis_device *device,
				    struct ndis_driver *driver);

#endif /* WRAPPER_H */