* Changes to PCI emulation made by Marathon Technologies, June 2008
*/
+#ifndef PCI_EMULATION_H
+#define PCI_EMULATION_H
+
typedef struct PCI_EMULATION_INFO_t {
struct PCI_EMULATION_INFO_t *next;
char name[32];
void pci_emulation_init(PCIBus *bus, PCI_EMULATION_INFO *pci_emulation_info);
extern PCI_EMULATION_INFO *PciEmulationInfoHead;
+
+#endif /*PCI_EMULATION_H*/
* OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
* THE SOFTWARE.
*/
+
+#include "block.h"
+
#define USB_TOKEN_SETUP 0x2d
#define USB_TOKEN_IN 0x69 /* device -> host */
#define USB_TOKEN_OUT 0xe1 /* host -> device */
if (parse_host_port(&saddr, host_str) < 0)
return -1;
-static int pci_emulation_add(char *config_text)
-{
- PCI_EMULATION_INFO *new;
- if ((new = qemu_mallocz(sizeof(PCI_EMULATION_INFO))) == NULL) {
- return -1;
- }
- parse_pci_emulation_info(config_text, new);
- new->next = PciEmulationInfoHead;
- PciEmulationInfoHead = new;
- return 0;
-}
-
fd = net_socket_mcast_create(&saddr);
if (fd < 0)
return -1;
}
+static int pci_emulation_add(char *config_text)
+{
+ PCI_EMULATION_INFO *new;
+ if ((new = qemu_mallocz(sizeof(PCI_EMULATION_INFO))) == NULL) {
+ return -1;
+ }
+ parse_pci_emulation_info(config_text, new);
+ new->next = PciEmulationInfoHead;
+ PciEmulationInfoHead = new;
+ return 0;
+}
+
static const char *get_opt_name(char *buf, int buf_size, const char *p)
{
char *q;
#endif
#ifdef CONFIG_OPENGL
{ "disable-opengl", 0, QEMU_OPTION_disable_opengl },
-#endif CONFIG_OPENGL
+#endif
{ "vcpus", 1, QEMU_OPTION_vcpus },
{ "acpi", 0, QEMU_OPTION_acpi }, /* deprecated, for xend compatibility */
{ "direct_pci", HAS_ARG, QEMU_OPTION_direct_pci },
#define DEFAULT_NETWORK_SCRIPT "/etc/xen/qemu-ifup"
#define DEFAULT_NETWORK_DOWN_SCRIPT "/etc/xen/qemu-ifdown"
+
+void xenstore_parse_domain_config(int domid);
+void xenstore_read_vncpasswd(int domid, char *pwbuf, size_t pwbuflen);