blob: 275c9b4b0ddb4014c513227712bfd7fe8f599068 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
|
#ifndef INTEL_L3_PARITY_H_
#define INTEL_L3_PARITY_H_
#include <stdint.h>
#include <stdbool.h>
struct l3_parity {
struct udev *udev;
struct udev_monitor *uevent_monitor;
int fd;
fd_set fdset;
};
struct l3_location {
uint8_t slice;
uint16_t row;
uint8_t bank;
uint8_t subbank;
};
int l3_uevent_setup(struct l3_parity *par);
/* Listens (blocks) for an l3 parity event. Returns the location of the error. */
int l3_listen(struct l3_parity *par, bool daemon, struct l3_location *loc);
#define l3_uevent_teardown(par) {}
#endif
|