mei_dev.h (f1615bbe9be4def59c3b3eaddb60722efeed16c2) mei_dev.h (f3d8e8788b4efbd13b6e888e85af51385d87d306)
1/*
2 *
3 * Intel Management Engine Interface (Intel MEI) Linux driver
4 * Copyright (c) 2003-2012, Intel Corporation.
5 *
6 * This program is free software; you can redistribute it and/or modify it
7 * under the terms and conditions of the GNU General Public License,
8 * version 2, as published by the Free Software Foundation.

--- 386 unchanged lines hidden (view full) ---

395 .vendor = PCI_VENDOR_ID_INTEL, .device = (dev), \
396 .subvendor = PCI_ANY_ID, .subdevice = PCI_ANY_ID, \
397 .driver_data = (kernel_ulong_t)&(cfg)
398
399
400/**
401 * struct mei_device - MEI private device struct
402
1/*
2 *
3 * Intel Management Engine Interface (Intel MEI) Linux driver
4 * Copyright (c) 2003-2012, Intel Corporation.
5 *
6 * This program is free software; you can redistribute it and/or modify it
7 * under the terms and conditions of the GNU General Public License,
8 * version 2, as published by the Free Software Foundation.

--- 386 unchanged lines hidden (view full) ---

395 .vendor = PCI_VENDOR_ID_INTEL, .device = (dev), \
396 .subvendor = PCI_ANY_ID, .subdevice = PCI_ANY_ID, \
397 .driver_data = (kernel_ulong_t)&(cfg)
398
399
400/**
401 * struct mei_device - MEI private device struct
402
403 * @pdev - pointer to pci device struct
404 * @cdev - character device
405 * @minor - minor number allocated for device
406 *
403 * @reset_count - limits the number of consecutive resets
404 * @hbm_state - state of host bus message protocol
405 * @pg_event - power gating event
406 * @mem_addr - mem mapped base register address
407
408 * @hbuf_depth - depth of hardware host/write buffer is slots
409 * @hbuf_is_ready - query if the host host/write buffer is ready
410 * @wr_msg - the buffer for hbm control messages
411 * @cfg - per device generation config and ops
412 */
413struct mei_device {
414 struct pci_dev *pdev; /* pointer to pci device struct */
407 * @reset_count - limits the number of consecutive resets
408 * @hbm_state - state of host bus message protocol
409 * @pg_event - power gating event
410 * @mem_addr - mem mapped base register address
411
412 * @hbuf_depth - depth of hardware host/write buffer is slots
413 * @hbuf_is_ready - query if the host host/write buffer is ready
414 * @wr_msg - the buffer for hbm control messages
415 * @cfg - per device generation config and ops
416 */
417struct mei_device {
418 struct pci_dev *pdev; /* pointer to pci device struct */
419 struct cdev cdev;
420 int minor;
421
415 /*
416 * lists of queues
417 */
418 /* array of pointers to aio lists */
419 struct mei_cl_cb read_list; /* driver read queue */
420 struct mei_cl_cb write_list; /* driver write queue */
421 struct mei_cl_cb write_waiting_list; /* write waiting queue */
422 struct mei_cl_cb ctrl_wr_list; /* managed write IOCTL list */

--- 313 unchanged lines hidden (view full) ---

736#else
737static inline int mei_dbgfs_register(struct mei_device *dev, const char *name)
738{
739 return 0;
740}
741static inline void mei_dbgfs_deregister(struct mei_device *dev) {}
742#endif /* CONFIG_DEBUG_FS */
743
422 /*
423 * lists of queues
424 */
425 /* array of pointers to aio lists */
426 struct mei_cl_cb read_list; /* driver read queue */
427 struct mei_cl_cb write_list; /* driver write queue */
428 struct mei_cl_cb write_waiting_list; /* write waiting queue */
429 struct mei_cl_cb ctrl_wr_list; /* managed write IOCTL list */

--- 313 unchanged lines hidden (view full) ---

743#else
744static inline int mei_dbgfs_register(struct mei_device *dev, const char *name)
745{
746 return 0;
747}
748static inline void mei_dbgfs_deregister(struct mei_device *dev) {}
749#endif /* CONFIG_DEBUG_FS */
750
744int mei_register(struct mei_device *dev);
751int mei_register(struct mei_device *dev, struct device *parent);
745void mei_deregister(struct mei_device *dev);
746
747#define MEI_HDR_FMT "hdr:host=%02d me=%02d len=%d internal=%1d comp=%1d"
748#define MEI_HDR_PRM(hdr) \
749 (hdr)->host_addr, (hdr)->me_addr, \
750 (hdr)->length, (hdr)->internal, (hdr)->msg_complete
751
752#endif
752void mei_deregister(struct mei_device *dev);
753
754#define MEI_HDR_FMT "hdr:host=%02d me=%02d len=%d internal=%1d comp=%1d"
755#define MEI_HDR_PRM(hdr) \
756 (hdr)->host_addr, (hdr)->me_addr, \
757 (hdr)->length, (hdr)->internal, (hdr)->msg_complete
758
759#endif