---
name: "struct_rio_dev"
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_dev"
---

# struct\_rio\_dev(9)

RIO device info

## NAME

struct\_rio\_dev - RIO device info

## SYNOPSIS

```
struct rio_dev {
  struct list_head global_list;
  struct list_head net_list;
  struct rio_net * net;
  bool do_enum;
  u16 did;
  u16 vid;
  u32 device_rev;
  u16 asm_did;
  u16 asm_vid;
  u16 asm_rev;
  u16 efptr;
  u32 pef;
  u32 swpinfo;
  u32 src_ops;
  u32 dst_ops;
  u32 comp_tag;
  u32 phys_efptr;
  u32 phys_rmap;
  u32 em_efptr;
  u64 dma_mask;
  struct rio_driver * driver;
  struct device dev;
  struct resource riores[RIO_MAX_DEV_RESOURCES];
  int (* pwcback) (struct rio_dev *rdev, union rio_pw_msg *msg, int step);
  u16 destid;
  u8 hopcount;
  struct rio_dev * prev;
  atomic_t state;
  struct rio_switch rswitch[0];
};
```

## MEMBERS

global\_list

Node in list of all RIO devices

net\_list

Node in list of RIO devices in a network

net

Network this device is a part of

do\_enum

Enumeration flag

did

Device ID

vid

Vendor ID

device\_rev

Device revision

asm\_did

Assembly device ID

asm\_vid

Assembly vendor ID

asm\_rev

Assembly revision

efptr

Extended feature pointer

pef

Processing element features

swpinfo

Switch port info

src\_ops

Source operation capabilities

dst\_ops

Destination operation capabilities

comp\_tag

RIO component tag

phys\_efptr

RIO device extended features pointer

phys\_rmap

LP-Serial Register Map Type (1 or 2)

em\_efptr

RIO Error Management features pointer

dma\_mask

Mask of bits of RIO address this device implements

driver

Driver claiming this device

dev

Device model device

riores\[RIO\_MAX\_DEV\_RESOURCES\]

RIO resources this device owns

pwcback

port-write callback function for this device

destid

Network destination ID (or associated destid for switch)

hopcount

Hopcount to this device

prev

Previous RIO device connected to the current one

state

device state

rswitch\[0\]

struct rio\_switch (if valid for this device)

## AUTHOR

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

Author.

## COPYRIGHT
