mirror of
https://github.com/AuxXxilium/linux_dsm_epyc7002.git
synced 2024-12-14 17:57:05 +07:00
sparc64: add port_id to VIO device metadata
Add port_id field to VIO device metadata to identify the port of VIO device. Signed-off-by: Jagannathan Raman <jag.raman@oracle.com> Reviewed-by: Liam Merwick <liam.merwick@oracle.com> Reviewed-by: Shannon Nelson <shannon.nelson@oracle.com> Signed-off-by: David S. Miller <davem@davemloft.net>
This commit is contained in:
parent
f4d29ca7de
commit
15c35e4ebb
@ -330,6 +330,7 @@ struct vio_dev {
|
||||
|
||||
u64 dev_no;
|
||||
|
||||
unsigned long port_id;
|
||||
unsigned long channel_id;
|
||||
|
||||
unsigned int tx_irq;
|
||||
|
@ -334,6 +334,7 @@ static struct vio_dev *vio_create_one(struct mdesc_handle *hp, u64 mp,
|
||||
memset(vdev->compat, 0, sizeof(vdev->compat));
|
||||
vdev->compat_len = clen;
|
||||
|
||||
vdev->port_id = ~0UL;
|
||||
vdev->tx_irq = 0;
|
||||
vdev->rx_irq = 0;
|
||||
|
||||
@ -349,6 +350,7 @@ static struct vio_dev *vio_create_one(struct mdesc_handle *hp, u64 mp,
|
||||
dev_set_name(&vdev->dev, "%s-%llu-%llu", type,
|
||||
*cfg_handle, *id);
|
||||
vdev->dev_no = *cfg_handle;
|
||||
vdev->port_id = *id;
|
||||
}
|
||||
|
||||
vdev->dev.parent = parent;
|
||||
|
Loading…
Reference in New Issue
Block a user