mirror of
https://github.com/ibm-s390-linux/s390-tools.git
synced 2026-08-05 02:14:52 +00:00
This commit is based on the s390-tools-1.39.0 version. Changes on top of s390-tools-1.39.0: - Add MIT license to all source files - Add LICENSE file - Transform REAMDE to README.md (markdown) - Add AUTHORS.md file - Add CONTRIBUTING.md file - Move changelog from README to CHANGELOG.md file Reviewed-by: Stefan Haberland <sth@linux.vnet.ibm.com> Signed-off-by: Michael Holzheu <holzheu@linux.vnet.ibm.com>
43 lines
814 B
C
43 lines
814 B
C
/*
|
|
* zdev - Modify and display the persistent configuration of devices
|
|
*
|
|
* Copyright IBM Corp. 2016, 2017
|
|
*
|
|
* 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 NIC_H
|
|
#define NIC_H
|
|
|
|
#include <stdbool.h>
|
|
|
|
enum nic_type {
|
|
nic_qdio,
|
|
nic_hipers,
|
|
nic_iedn,
|
|
nic_inmn,
|
|
};
|
|
|
|
enum nic_target {
|
|
nic_vswitch,
|
|
nic_lan,
|
|
};
|
|
|
|
#define NIC_OWNER_LEN 9
|
|
#define NIC_NAME_LEN 9
|
|
|
|
struct nic_data {
|
|
enum nic_type type;
|
|
enum nic_target target;
|
|
char owner[NIC_OWNER_LEN];
|
|
char name[NIC_NAME_LEN];
|
|
};
|
|
|
|
bool nic_data_get(const char *, struct nic_data *);
|
|
void nic_data_print(struct nic_data *, int);
|
|
bool nic_vswitch_get_layer2(const char *, int *);
|
|
bool nic_lan_get_layer2(const char *, const char *, int *);
|
|
|
|
#endif /* NIC_H */
|