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