DWC_OTG to run on bare metal firmware?

Status
Not open for further replies.

db_07

Newbie level 2
Joined
Sep 8, 2011
Messages
2
Helped
0
Reputation
0
Reaction score
0
Trophy points
1,281
Activity points
1,294
DWC_OTG question

Hi,
I am trying to strip down this code to run on an OS-less platform. So all the linux related code has to go. Can someone tell me what the following does and what is a LM_dEVICE and a PCI_DEV?

My question is should one of them be defined or can I get rid of both?

#ifdef LM_INTERFACE
struct lm_device *lmdev;
#elif defined(PCI_INTERFACE)
struct pci_dev *pcidev;

/** Start address of a PCI region */
resource_size_t rsrc_start;

/** Length address of a PCI region */
resource_size_t rsrc_len;
#endif
 
Last edited:

Status
Not open for further replies.

Similar threads

Cookies are required to use this site. You must accept them to continue using the site. Learn more…