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