|
Packit Service |
ea0369 |
/*
|
|
Packit Service |
ea0369 |
* libvirt-gconfig-domain-address-pci.h: libvirt PCI device address configuration
|
|
Packit Service |
ea0369 |
*
|
|
Packit Service |
ea0369 |
* Copyright (C) 2012 Red Hat, Inc.
|
|
Packit Service |
ea0369 |
*
|
|
Packit Service |
ea0369 |
* This library is free software; you can redistribute it and/or
|
|
Packit Service |
ea0369 |
* modify it under the terms of the GNU Lesser General Public
|
|
Packit Service |
ea0369 |
* License as published by the Free Software Foundation; either
|
|
Packit Service |
ea0369 |
* version 2.1 of the License, or (at your option) any later version.
|
|
Packit Service |
ea0369 |
*
|
|
Packit Service |
ea0369 |
* This library is distributed in the hope that it will be useful,
|
|
Packit Service |
ea0369 |
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
Packit Service |
ea0369 |
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
|
|
Packit Service |
ea0369 |
* Lesser General Public License for more details.
|
|
Packit Service |
ea0369 |
*
|
|
Packit Service |
ea0369 |
* You should have received a copy of the GNU Lesser General Public
|
|
Packit Service |
ea0369 |
* License along with this library. If not, see
|
|
Packit Service |
ea0369 |
* <http://www.gnu.org/licenses/>.
|
|
Packit Service |
ea0369 |
*
|
|
Packit Service |
ea0369 |
* Author: Christophe Fergeau <cfergeau@redhat.com>
|
|
Packit Service |
ea0369 |
*/
|
|
Packit Service |
ea0369 |
|
|
Packit Service |
ea0369 |
#if !defined(__LIBVIRT_GCONFIG_H__) && !defined(LIBVIRT_GCONFIG_BUILD)
|
|
Packit Service |
ea0369 |
#error "Only <libvirt-gconfig/libvirt-gconfig.h> can be included directly."
|
|
Packit Service |
ea0369 |
#endif
|
|
Packit Service |
ea0369 |
|
|
Packit Service |
ea0369 |
#ifndef __LIBVIRT_GCONFIG_DOMAIN_ADDRESS_PCI_H__
|
|
Packit Service |
ea0369 |
#define __LIBVIRT_GCONFIG_DOMAIN_ADDRESS_PCI_H__
|
|
Packit Service |
ea0369 |
|
|
Packit Service |
ea0369 |
G_BEGIN_DECLS
|
|
Packit Service |
ea0369 |
|
|
Packit Service |
ea0369 |
#define GVIR_CONFIG_TYPE_DOMAIN_ADDRESS_PCI (gvir_config_domain_address_pci_get_type ())
|
|
Packit Service |
ea0369 |
#define GVIR_CONFIG_DOMAIN_ADDRESS_PCI(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), GVIR_CONFIG_TYPE_DOMAIN_ADDRESS_PCI, GVirConfigDomainAddressPci))
|
|
Packit Service |
ea0369 |
#define GVIR_CONFIG_DOMAIN_ADDRESS_PCI_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), GVIR_CONFIG_TYPE_DOMAIN_ADDRESS_PCI, GVirConfigDomainAddressPciClass))
|
|
Packit Service |
ea0369 |
#define GVIR_CONFIG_IS_DOMAIN_ADDRESS_PCI(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), GVIR_CONFIG_TYPE_DOMAIN_ADDRESS_PCI))
|
|
Packit Service |
ea0369 |
#define GVIR_CONFIG_IS_DOMAIN_ADDRESS_PCI_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), GVIR_CONFIG_TYPE_DOMAIN_ADDRESS_PCI))
|
|
Packit Service |
ea0369 |
#define GVIR_CONFIG_DOMAIN_ADDRESS_PCI_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), GVIR_CONFIG_TYPE_DOMAIN_ADDRESS_PCI, GVirConfigDomainAddressPciClass))
|
|
Packit Service |
ea0369 |
|
|
Packit Service |
ea0369 |
typedef struct _GVirConfigDomainAddressPci GVirConfigDomainAddressPci;
|
|
Packit Service |
ea0369 |
typedef struct _GVirConfigDomainAddressPciPrivate GVirConfigDomainAddressPciPrivate;
|
|
Packit Service |
ea0369 |
typedef struct _GVirConfigDomainAddressPciClass GVirConfigDomainAddressPciClass;
|
|
Packit Service |
ea0369 |
|
|
Packit Service |
ea0369 |
struct _GVirConfigDomainAddressPci
|
|
Packit Service |
ea0369 |
{
|
|
Packit Service |
ea0369 |
GVirConfigDomainAddress parent;
|
|
Packit Service |
ea0369 |
|
|
Packit Service |
ea0369 |
GVirConfigDomainAddressPciPrivate *priv;
|
|
Packit Service |
ea0369 |
|
|
Packit Service |
ea0369 |
/* Do not add fields to this struct */
|
|
Packit Service |
ea0369 |
};
|
|
Packit Service |
ea0369 |
|
|
Packit Service |
ea0369 |
struct _GVirConfigDomainAddressPciClass
|
|
Packit Service |
ea0369 |
{
|
|
Packit Service |
ea0369 |
GVirConfigDomainAddressClass parent_class;
|
|
Packit Service |
ea0369 |
|
|
Packit Service |
ea0369 |
gpointer padding[20];
|
|
Packit Service |
ea0369 |
};
|
|
Packit Service |
ea0369 |
|
|
Packit Service |
ea0369 |
GType gvir_config_domain_address_pci_get_type(void);
|
|
Packit Service |
ea0369 |
|
|
Packit Service |
ea0369 |
GVirConfigDomainAddressPci *gvir_config_domain_address_pci_new(void);
|
|
Packit Service |
ea0369 |
GVirConfigDomainAddressPci *gvir_config_domain_address_pci_new_from_xml(const gchar *xml,
|
|
Packit Service |
ea0369 |
GError **error);
|
|
Packit Service |
ea0369 |
|
|
Packit Service |
ea0369 |
int gvir_config_domain_address_pci_get_domain(GVirConfigDomainAddressPci *address);
|
|
Packit Service |
ea0369 |
void gvir_config_domain_address_pci_set_domain(GVirConfigDomainAddressPci *address,
|
|
Packit Service |
ea0369 |
guint16 pci_domain);
|
|
Packit Service |
ea0369 |
int gvir_config_domain_address_pci_get_bus(GVirConfigDomainAddressPci *address);
|
|
Packit Service |
ea0369 |
void gvir_config_domain_address_pci_set_bus(GVirConfigDomainAddressPci *address,
|
|
Packit Service |
ea0369 |
guchar bus);
|
|
Packit Service |
ea0369 |
int gvir_config_domain_address_pci_get_slot(GVirConfigDomainAddressPci *address);
|
|
Packit Service |
ea0369 |
void gvir_config_domain_address_pci_set_slot(GVirConfigDomainAddressPci *address,
|
|
Packit Service |
ea0369 |
guchar slot);
|
|
Packit Service |
ea0369 |
int gvir_config_domain_address_pci_get_function(GVirConfigDomainAddressPci *address);
|
|
Packit Service |
ea0369 |
void gvir_config_domain_address_pci_set_function(GVirConfigDomainAddressPci *address,
|
|
Packit Service |
ea0369 |
guchar function);
|
|
Packit Service |
ea0369 |
gboolean gvir_config_domain_address_pci_get_multifunction(GVirConfigDomainAddressPci *address);
|
|
Packit Service |
ea0369 |
void gvir_config_domain_address_pci_set_multifunction(GVirConfigDomainAddressPci *address,
|
|
Packit Service |
ea0369 |
gboolean multifunction);
|
|
Packit Service |
ea0369 |
|
|
Packit Service |
ea0369 |
G_END_DECLS
|
|
Packit Service |
ea0369 |
|
|
Packit Service |
ea0369 |
#endif /* __LIBVIRT_GCONFIG_DOMAIN_ADDRESS_PCI_H__ */
|