Scroll to navigation

RIO_SETUP_DEVICE(9) Internals RIO_SETUP_DEVICE(9)

NAME

rio_setup_device - Allocates and sets up a RIO device

SYNOPSIS

struct rio_dev * rio_setup_device(struct rio_net * net, struct rio_mport * port, u16 destid, u8 hopcount, int do_enum);

ARGUMENTS

struct rio_net * net

RIO network

struct rio_mport * port

Master port to send transactions

u16 destid

Current destination ID

u8 hopcount

Current hopcount

int do_enum

Enumeration/Discovery mode flag

DESCRIPTION

Allocates a RIO device and configures fields based on configuration space contents. If device has a destination ID register, a destination ID is either assigned in enumeration mode or read from configuration space in discovery mode. If the device has switch capabilities, then a switch is allocated and configured appropriately. Returns a pointer to a RIO device on success or NULL on failure.

AUTHOR

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

Author.

COPYRIGHT

July 2017 Kernel Hackers Manual 4.12