#include "intel_pxp_tee.h"
  #include "intel_pxp_types.h"
  
+ #define PXP_TRANSPORT_TIMEOUT_MS 5000 /* 5 sec */
+ 
  static bool
 -is_fw_err_platform_config(u32 type)
 +is_fw_err_platform_config(struct intel_pxp *pxp, u32 type)
  {
        switch (type) {
        case PXP_STATUS_ERROR_API_VERSION:
 
        t->vars[0].data = &port->spintime;
        for (i = 0; i < 5; i++) {
                t->vars[i].extra1 = port;
 +#ifdef CONFIG_PARPORT_1284
                t->vars[5 + i].extra2 = &port->probe_info[i];
 +#endif /* IEEE 1284 support */
        }
  
-       port_name_len = strnlen(port->name, PARPORT_NAME_MAX_LEN);
-       /*
-        * Allocate a buffer for two paths: dev/parport/PORT and dev/parport/PORT/devices.
-        * We calculate for the second as that will give us enough for the first.
-        */
-       tmp_path_len = PARPORT_BASE_DEVICES_PATH_SIZE + port_name_len;
-       tmp_dir_path = kzalloc(tmp_path_len, GFP_KERNEL);
+       tmp_dir_path = kasprintf(GFP_KERNEL, "dev/parport/%s/devices", port->name);
        if (!tmp_dir_path) {
                err = -ENOMEM;
                goto exit_free_t;
 
  
  struct cdx_device_config {
        u8 type;
 +      bool bus_master_enable;
  };
  
+ typedef int (*cdx_bus_enable_cb)(struct cdx_controller *cdx, u8 bus_num);
+ 
+ typedef int (*cdx_bus_disable_cb)(struct cdx_controller *cdx, u8 bus_num);
+ 
  typedef int (*cdx_scan_cb)(struct cdx_controller *cdx);
  
  typedef int (*cdx_dev_configure_cb)(struct cdx_controller *cdx,