#define O_PATH 010000000
#endif
-#ifdef CONFIG_MARU // added by caramis
-#ifndef AT_REMOVEDIR
-#define AT_REMOVEDIR 0x200
-#endif
-#ifndef AT_EMPTY_PATH
-#define AT_EMPTY_PATH 0x1000 /* Allow empty relative pathname */
-#endif
-#ifndef O_PATH
-#define O_PATH 010000000
-#endif
-#endif
-
struct handle_data {
int mountfd;
int handle_bytes;
};
-#ifndef AT_REMOVEDIR
-#define AT_REMOVEDIR 0x200
-#endif
-#ifndef AT_EMPTY_PATH
-#define AT_EMPTY_PATH 0x1000 /* Allow empty relative pathname */
-#endif
-#ifndef O_PATH
-#define O_PATH 010000000
-#endif
-
static inline int name_to_handle(int dirfd, const char *name,
struct file_handle *fh, int *mnt_id, int flags)
{
}
static Property piix4_pm_properties[] = {
-#if defined(CONFIG_MARU) && defined(__x86_64__)
- .qdev.name = "MARU_PM",
-#else
-#endif
DEFINE_PROP_UINT32("smb_io_base", PIIX4PMState, smb_io_base, 0),
DEFINE_PROP_END_OF_LIST(),
};
}
static TypeInfo piix4_pm_info = {
+#if defined(CONFIG_MARU) && defined(__x86_64__)
+ .name = "MARU_PM",
+#else
.name = "PIIX4_PM",
+#endif
.parent = TYPE_PCI_DEVICE,
.instance_size = sizeof(PIIX4PMState),
.class_init = piix4_pm_class_init,