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 Code256257 /* static prototypes */258 static int __init aau_init(void);259 static int aau_start(iop310_aau_t *, sw_aau_t *);260 static int aau_flush_all(u32);261 static void aau_process(iop310_aau_t *);262 static void aau_task(void *);263 static void aau_irq_handler(int, void *, struct pt_regs *);264265 /*=======================================================================*/266 /* Procedure: aau_start() */267 /* */268 /* Description: This function starts the <strong>AAU</strong>. If the <strong>AAU</strong> */269 /* has already started then chain resume is done */270 /* */271 /* Parameters: aau: <strong>AAU</strong> device */272 /* aau_chain: <strong>AAU</strong> data chain to pass to the <strong>AAU</strong> */273 /* */274 /* Returns: int -- success: OK */275 /* failure: -EBUSY */276 /* */277 /* Notes/Assumptions: */278 /* */279 /* History: Dave Jiang 07/18/01 Initial Creation */280 /*=======================================================================*/281 static int aau_start(iop310_aau_t * aau, sw_aau_t * aau_chain)282 {283 u32 status;284285 /* get accelerator status */286 status = *(IOP310_<strong>AAU</strong>ASR);287288 /* check accelerator status error */289 if(status & <strong>AAU</strong>_ASR_ERROR_MASK)White Paper 41

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

Saved successfully!

Ooh no, something went wrong!