Files
s390-tools/zpcictl/zpcictl.h
Niklas Schnelle 8704c9c80e zpcictl: Pull SCLP handling out and into libzpci
The upcoming optics monitoring tool will have to issue SCLP Write Event
data just like zpcictl so pull that functionality out and into libzpci.
While at it decouple getting SMART data from the actual SCLP handling.
No change in behavior intended.

Signed-off-by: Niklas Schnelle <schnelle@linux.ibm.com>
Signed-off-by: Jan Höppner <hoeppner@linux.ibm.com>
2024-12-06 10:57:34 +01:00

37 lines
655 B
C

/*
* zpcictl - Manage PCI devices on z Systems
*
* Copyright IBM Corp. 2018
*
* s390-tools is free software; you can redistribute it and/or modify
* it under the terms of the MIT license. See LICENSE for details.
*/
#ifndef ZPCICTL_H
#define ZPCICTL_H
#include <linux/types.h>
#include "lib/zt_common.h"
#define PCI_CLASS_UNCLASSIFIED 0x000000U
#define PCI_CLASS_NVME 0x010802U
#define PCI_CLASS_NETWORK 0x020000U
struct options {
unsigned int reset;
unsigned int reset_fw;
unsigned int deconfigure;
unsigned int report;
};
struct zpci_device {
u16 fid;
u16 pchid;
u32 class;
char slot[13];
char *device;
};
#endif /* ZPCICTL_H */