Scroll to navigation

STRUCT RIO_DEV(9) Internals STRUCT RIO_DEV(9)

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;
  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;
};  

MEMBERS

struct list_head global_list
Node in list of all RIO devices

struct list_head net_list

Node in list of RIO devices in a network

struct rio_net * net

Network this device is a part of

bool do_enum

Enumeration flag

u16 did

Device ID

u16 vid

Vendor ID

u32 device_rev

Device revision

u16 asm_did

Assembly device ID

u16 asm_vid

Assembly vendor ID

u16 asm_rev

Assembly revision

u16 efptr

Extended feature pointer

u32 pef

Processing element features

u32 swpinfo

Switch port info

u32 src_ops

Source operation capabilities

u32 dst_ops

Destination operation capabilities

u32 comp_tag

RIO component tag

u32 phys_efptr

RIO device extended features pointer

u32 phys_rmap

LP-Serial Register Map Type (1 or 2)

u32 em_efptr

RIO Error Management features pointer

u64 dma_mask

Mask of bits of RIO address this device implements

struct rio_driver * driver

Driver claiming this device

struct device dev

Device model device

struct resource riores

RIO resources this device owns

int (*) (struct rio_dev *rdev, union rio_pw_msg *msg, int step) pwcback

port-write callback function for this device

u16 destid

Network destination ID (or associated destid for switch)

u8 hopcount

Hopcount to this device

struct rio_dev * prev

Previous RIO device connected to the current one

atomic_t state

device state

struct rio_switch rswitch

struct rio_switch (if valid for this device)

AUTHOR

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

COPYRIGHT

September 2017 Kernel Hackers Manual 4.12