From mboxrd@z Thu Jan 1 00:00:00 1970 From: Stephen Hemminger Subject: Re: [RFC] Wireless Base Band Device (bbdev) Date: Fri, 1 Sep 2017 13:03:39 -0700 Message-ID: <20170901130339.76dc0457@xeon-e3> References: <1503668796-65832-1-git-send-email-amr.mokhtar@intel.com> Mime-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Cc: dev@dpdk.org To: Amr Mokhtar Return-path: Received: from mail-pg0-f49.google.com (mail-pg0-f49.google.com [74.125.83.49]) by dpdk.org (Postfix) with ESMTP id AEF257CAC for ; Fri, 1 Sep 2017 22:03:42 +0200 (CEST) Received: by mail-pg0-f49.google.com with SMTP id b8so3221406pgn.5 for ; Fri, 01 Sep 2017 13:03:42 -0700 (PDT) In-Reply-To: <1503668796-65832-1-git-send-email-amr.mokhtar@intel.com> List-Id: DPDK patches and discussions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: dev-bounces@dpdk.org Sender: "dev" > +/* Forward declaration */ > +struct rte_pci_device; > + > +/** Device information structure used by an application to discover a devices > + * capabilities and current configuration > + */ > +struct rte_bbdev_info { > + int socket_id; /**< NUMA socket that device is on */ > + const char *dev_name; /**< Unique device name */ > + const struct rte_pci_device *pci_dev; /**< PCI information */ > + unsigned int num_queues; /**< Number of queues currently configured */ > + struct rte_bbdev_conf conf; /**< Current device configuration */ > + bool started; /**< Set if device is currently started */ > + struct rte_bbdev_driver_info drv; /**< Info from device driver */ > +}; Please don't build in dependency on PCI from the beginning. Number of queues can be uint16_t ?