Vishal Bhoj | 82c8071 | 2015-12-15 21:13:33 +0530 | [diff] [blame] | 1 | /** @file
|
| 2 | XenBus Bus driver declarations.
|
| 3 |
|
| 4 | Copyright (C) 2014, Citrix Ltd.
|
| 5 |
|
| 6 | This program and the accompanying materials
|
| 7 | are licensed and made available under the terms and conditions of the BSD License
|
| 8 | which accompanies this distribution. The full text of the license may be found at
|
| 9 | http://opensource.org/licenses/bsd-license.php
|
| 10 |
|
| 11 | THE PROGRAM IS DISTRIBUTED UNDER THE BSD LICENSE ON AN "AS IS" BASIS,
|
| 12 | WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED.
|
| 13 |
|
| 14 | **/
|
| 15 | #ifndef _XEN_XENBUS_XENBUSB_H
|
| 16 | #define _XEN_XENBUS_XENBUSB_H
|
| 17 |
|
| 18 | #include "XenBusDxe.h"
|
| 19 |
|
| 20 | #define XENBUS_DEVICE_PATH_TYPE_VBD 0x1
|
| 21 | struct _XENBUS_DEVICE_PATH {
|
| 22 | VENDOR_DEVICE_PATH Vendor;
|
| 23 | UINT8 Type;
|
| 24 | UINT16 DeviceId;
|
| 25 | };
|
| 26 |
|
| 27 |
|
| 28 | /**
|
| 29 | Perform XenBus bus enumeration and install protocol for children.
|
| 30 |
|
| 31 | Caller should ensure that it is the only one to call this function. This
|
| 32 | function cannot be called concurrently.
|
| 33 |
|
| 34 | @param Dev A XENBUS_DEVICE instance.
|
| 35 |
|
| 36 | @return On success, XENSTORE_STATUS_SUCCESS. Otherwise an errno value
|
| 37 | indicating the type of failure.
|
| 38 | **/
|
| 39 | XENSTORE_STATUS
|
| 40 | XenBusEnumerateBus (
|
| 41 | XENBUS_DEVICE *Dev
|
| 42 | );
|
| 43 |
|
| 44 | #endif /* _XEN_XENBUS_XENBUSB_H */
|