1RIO_SETUP_DEVICE(9)                Internals               RIO_SETUP_DEVICE(9)
2
3
4

NAME

6       rio_setup_device - Allocates and sets up a RIO device
7

SYNOPSIS

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

ARGUMENTS

14       net
15           RIO network
16
17       port
18           Master port to send transactions
19
20       destid
21           Current destination ID
22
23       hopcount
24           Current hopcount
25
26       do_enum
27           Enumeration/Discovery mode flag
28

DESCRIPTION

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

AUTHOR

38       Matt Porter <mporter@kernel.crashing.org>, <mporter@mvista.com>
39           Author.
40
42Kernel Hackers Manual 2.6.       November 2011             RIO_SETUP_DEVICE(9)
Impressum