---
name: "struct_rio_mport"
section: "9"
platform: "linux"
package: "linux-manual-4.9"
version: "4.9.228-1"
release: "Debian 9 (Stretch)"
platforms: ["linux"]
url: "https://new.carta.tech/struct_rio_mport"
---

# struct\_rio\_mport(9)

RIO master port info

## NAME

struct\_rio\_mport - RIO master port info

## SYNOPSIS

```
struct rio_mport {
  struct list_head dbells;
  struct list_head pwrites;
  struct list_head node;
  struct list_head nnode;
  struct rio_net * net;
  struct mutex lock;
  struct resource iores;
  struct resource riores[RIO_MAX_MPORT_RESOURCES];
  struct rio_msg inb_msg[RIO_MAX_MBOX];
  struct rio_msg outb_msg[RIO_MAX_MBOX];
  int host_deviceid;
  struct rio_ops * ops;
  unsigned char id;
  unsigned char index;
  unsigned int sys_size;
  u32 phys_efptr;
  u32 phys_rmap;
  unsigned char name[RIO_MAX_MPORT_NAME];
  struct device dev;
  void * priv;
#ifdef CONFIG_RAPIDIO_DMA_ENGINE
  struct dma_device dma;
#endif
  struct rio_scan * nscan;
  atomic_t state;
  unsigned int pwe_refcnt;
};
```

## MEMBERS

dbells

List of doorbell events

pwrites

List of portwrite events

node

Node in global list of master ports

nnode

Node in network list of master ports

net

RIO net this mport is attached to

lock

lock to synchronize lists manipulations

iores

I/O mem resource that this master port interface owns

riores\[RIO\_MAX\_MPORT\_RESOURCES\]

RIO resources that this master port interfaces owns

inb\_msg\[RIO\_MAX\_MBOX\]

RIO inbound message event descriptors

outb\_msg\[RIO\_MAX\_MBOX\]

RIO outbound message event descriptors

host\_deviceid

Host device ID associated with this master port

ops

configuration space functions

id

Port ID, unique among all ports

index

Port index, unique among all port interfaces of the same type

sys\_size

RapidIO common transport system size

phys\_efptr

RIO port extended features pointer

phys\_rmap

LP-Serial EFB Register Mapping type (1 or 2).

name\[RIO\_MAX\_MPORT\_NAME\]

Port name string

dev

device structure associated with an mport

priv

Master port private data

dma

DMA device associated with mport

nscan

RapidIO network enumeration/discovery operations

state

mport device state

pwe\_refcnt

port-write enable ref counter to track enable/disable requests

## AUTHOR

**Matt Porter** \<mporter@kernel.crashing.org\>, \<mporter@mvista.com\>

Author.

## COPYRIGHT
