Merge zeep.eecs.umich.edu:/m5/Bitkeeper/alpha-system
[gem5.git] / system / alpha / h / netman.h
1 #ifndef __NETMAN_H_LOADED
2 #define __NETMAN_H_LOADED
3 /*****************************************************************************
4
5 Copyright © 1993, 1994 Digital Equipment Corporation,
6 Maynard, Massachusetts.
7
8 All Rights Reserved
9
10 Permission to use, copy, modify, and distribute this software and its
11 documentation for any purpose and without fee is hereby granted, provided
12 that the copyright notice and this permission notice appear in all copies
13 of software and supporting documentation, and that the name of Digital not
14 be used in advertising or publicity pertaining to distribution of the software
15 without specific, written prior permission. Digital grants this permission
16 provided that you prominently mark, as not part of the original, any
17 modifications made to this software or documentation.
18
19 Digital Equipment Corporation disclaims all warranties and/or guarantees
20 with regard to this software, including all implied warranties of fitness for
21 a particular purpose and merchantability, and makes no representations
22 regarding the use of, or the results of the use of, the software and
23 documentation in terms of correctness, accuracy, reliability, currentness or
24 otherwise; and you rely on the software, documentation and results solely at
25 your own risk.
26
27 ******************************************************************************/
28
29 /* "$Id: netman.h,v 1.1.1.1 1997/10/30 23:27:16 verghese Exp $" */
30
31 /*
32 * This module provides functions for selecting which ethernet device is used and
33 * for initialising it when neccessary.
34 *
35 * $Log: netman.h,v $
36 * Revision 1.1.1.1 1997/10/30 23:27:16 verghese
37 * current 10/29/97
38 *
39 * Revision 1.3 1994/08/05 20:13:47 fdh
40 * Updated Copyright header and RCS $Id: identifier.
41 *
42 * Revision 1.2 1994/06/20 14:18:59 fdh
43 * Fixup header file preprocessor #include conditionals.
44 *
45 * Revision 1.1 1993/08/11 10:18:33 berent
46 * Initial revision
47 *
48 */
49
50 extern int monitor_ether_device;
51
52 /* netman_setup - initialise the networking modules and register the devices
53 */
54 extern void netman_setup(void);
55
56 /* netman_set_monitor_device - set up the device to be used by the monitor
57 *
58 * Argument:
59 * device_no - The monitor device number.
60 *
61 * Return value:
62 * TRUE - successful
63 * FALSE - bad device number
64 */
65 extern int netman_set_monitor_device(int device_no);
66
67 /* netman_start_monitor_device - start the monitor device and all protocol handlers for it
68 */
69 extern void netman_start_monitor_device(void);
70
71 /* netman_monitor_device_started - tells other modules whether the monitor device has been started
72 *
73 * Return value:
74 * TRUE - it has been initialised before
75 * FALSE - it has never been initialised
76 */
77 extern int netman_monitor_device_started(void);
78
79 #endif /* __NETMAN_H_LOADED */