10.07.2015 Views

Intel 80310 I/O Processor Chipset AAU Coding Techniques

Intel 80310 I/O Processor Chipset AAU Coding Techniques

Intel 80310 I/O Processor Chipset AAU Coding Techniques

SHOW MORE
SHOW LESS

Create successful ePaper yourself

Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.

<strong>Intel</strong> ® <strong>80310</strong> I/O <strong>Processor</strong> <strong>Chipset</strong> <strong>AAU</strong> <strong>Coding</strong> <strong>Techniques</strong><strong>AAU</strong> Source Code324 aau->last_aau = aau_chain->tail;325326 return 0;327 }328329330 /*=======================================================================*/331 /* Procedure: aau_request() */332 /* */333 /* Description: This function requests the <strong>AAU</strong> */334 /* */335 /* Parameters: aau_context: aau context */336 /* device_id -- unique device name */337 /* */338 /* Returns: 0 - ok */339 /* NULL -- failed */340 /* */341 /* Notes/Assumptions: */342 /* */343 /* History: Dave Jiang 07/18/01 Initial Creation */344 /*=======================================================================*/345 int aau_request(u32 * aau_context, const char *device_id)346 {347 iop310_aau_t *aau = &aau_dev;348349 DPRINTK("Entering <strong>AAU</strong> request\n");350 /* increment reference count */351 atomic_inc(&aau->ref_count);352353 /* get interrupt if ref count is less than or equal to 1 */354 if(atomic_read(&aau->ref_count) dev_id = device_id;White Paper 43

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!