Linux Kernel  3.7.1
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
Data Structures | Macros | Functions
vfio_pci_config.c File Reference
#include <linux/fs.h>
#include <linux/pci.h>
#include <linux/uaccess.h>
#include <linux/vfio.h>
#include "vfio_pci_private.h"

Go to the source code of this file.

Data Structures

struct  perm_bits
 

Macros

#define PCI_CFG_SPACE_SIZE   256
 
#define PCI_CAP_ID_BASIC   0
 
#define PCI_CAP_ID_INVALID   0xFF
 
#define is_bar(offset)
 
#define NO_VIRT   0
 
#define ALL_VIRT   0xFFFFFFFFU
 
#define NO_WRITE   0
 
#define ALL_WRITE   0xFFFFFFFFU
 

Functions

void vfio_pci_uninit_perm_bits (void)
 
int __init vfio_pci_init_perm_bits (void)
 
int vfio_config_init (struct vfio_pci_device *vdev)
 
void vfio_config_free (struct vfio_pci_device *vdev)
 
ssize_t vfio_pci_config_readwrite (struct vfio_pci_device *vdev, char __user *buf, size_t count, loff_t *ppos, bool iswrite)
 

Macro Definition Documentation

#define ALL_VIRT   0xFFFFFFFFU

Definition at line 123 of file vfio_pci_config.c.

#define ALL_WRITE   0xFFFFFFFFU

Definition at line 125 of file vfio_pci_config.c.

#define is_bar (   offset)
Value:

Definition at line 39 of file vfio_pci_config.c.

#define NO_VIRT   0

Definition at line 122 of file vfio_pci_config.c.

#define NO_WRITE   0

Definition at line 124 of file vfio_pci_config.c.

#define PCI_CAP_ID_BASIC   0

Definition at line 36 of file vfio_pci_config.c.

#define PCI_CAP_ID_INVALID   0xFF

Definition at line 37 of file vfio_pci_config.c.

#define PCI_CFG_SPACE_SIZE   256

Definition at line 33 of file vfio_pci_config.c.

Function Documentation

void vfio_config_free ( struct vfio_pci_device vdev)

Definition at line 1407 of file vfio_pci_config.c.

int vfio_config_init ( struct vfio_pci_device vdev)

Definition at line 1337 of file vfio_pci_config.c.

ssize_t vfio_pci_config_readwrite ( struct vfio_pci_device vdev,
char __user buf,
size_t  count,
loff_t *  ppos,
bool  iswrite 
)

Definition at line 1504 of file vfio_pci_config.c.

int __init vfio_pci_init_perm_bits ( void  )

Definition at line 737 of file vfio_pci_config.c.

void vfio_pci_uninit_perm_bits ( void  )

Definition at line 724 of file vfio_pci_config.c.