ia64/xen-unstable

view linux-2.6-xen-sparse/include/asm-xen/net_driver_util.h @ 8534:da7873110bbb

Tiny bootstrap cleanup.

Signed-off-by: Keir Fraser <keir@xensource.com>
author kaf24@firebug.cl.cam.ac.uk
date Mon Jan 09 19:46:46 2006 +0100 (2006-01-09)
parents 9523e6d10511
children
line source
1 /*****************************************************************************
2 *
3 * Utility functions for Xen network devices.
4 *
5 * Copyright (c) 2005 XenSource Ltd.
6 *
7 * This file may be distributed separately from the Linux kernel, or
8 * incorporated into other software packages, subject to the following
9 * license:
10 *
11 * Permission is hereby granted, free of charge, to any person obtaining a
12 * copy of this source file (the "Software"), to deal in the Software without
13 * restriction, including without limitation the rights to use, copy, modify,
14 * merge, publish, distribute, sublicense, and/or sell copies of the Software,
15 * and to permit persons to whom the Software is furnished to do so, subject
16 * to the following conditions:
17 *
18 * The above copyright notice and this permission notice shall be included in
19 * all copies or substantial portions of the Software.
20 *
21 * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
22 * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
23 * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
24 * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
25 * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
26 * FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER
27 * DEALINGS IN THE SOFTWARE.
28 */
30 #ifndef _ASM_XEN_NET_DRIVER_UTIL_H
31 #define _ASM_XEN_NET_DRIVER_UTIL_H
34 #include <asm-xen/xenbus.h>
37 /**
38 * Read the 'mac' node at the given device's node in the store, and parse that
39 * as colon-separated octets, placing result the given mac array. mac must be
40 * a preallocated array of length ETH_ALEN (as declared in linux/if_ether.h).
41 * Return 0 on success, or -errno on error.
42 */
43 int xen_net_read_mac(struct xenbus_device *dev, u8 mac[]);
46 #endif /* _ASM_XEN_NET_DRIVER_UTIL_H */
48 /*
49 * Local variables:
50 * c-file-style: "linux"
51 * indent-tabs-mode: t
52 * c-indent-level: 8
53 * c-basic-offset: 8
54 * tab-width: 8
55 * End:
56 */