Revision 089b7c0a hw/omap.h

b/hw/omap.h
336 336
# define OMAP_INT_243X_HS_USB_DMA	93
337 337
# define OMAP_INT_243X_CARKIT		94
338 338

  
339
enum omap_dma_model {
340
    omap_dma_3_1 = 0,
341
    omap_dma_3_2
342
};
343

  
339 344
struct omap_dma_s;
340
struct omap_dma_s *omap_dma_init(target_phys_addr_t base,
341
                qemu_irq pic[], struct omap_mpu_state_s *mpu, omap_clk clk);
345
struct omap_dma_s *omap_dma_init(target_phys_addr_t base, qemu_irq *irqs,
346
                qemu_irq lcd_irq, struct omap_mpu_state_s *mpu, omap_clk clk,
347
                enum omap_dma_model model);
342 348

  
343 349
enum omap_dma_port {
344 350
    emiff = 0,
345 351
    emifs,
346
    imif,
352
    imif,	/* omap16xx: ocp_t1 */
347 353
    tipb,
348
    local,
354
    local,	/* omap16xx: ocp_t2 */
349 355
    tipb_mpui,
350 356
    omap_dma_port_last,
351 357
};
352 358

  
359
typedef enum {
360
    constant = 0,
361
    post_incremented,
362
    single_index,
363
    double_index,
364
} omap_dma_addressing_t;
365

  
353 366
struct omap_dma_lcd_channel_s {
354 367
    enum omap_dma_port src;
355 368
    target_phys_addr_t src_f1_top;
356 369
    target_phys_addr_t src_f1_bottom;
357 370
    target_phys_addr_t src_f2_top;
358 371
    target_phys_addr_t src_f2_bottom;
372

  
373
    /* Used in OMAP DMA 3.2 gigacell */
374
    unsigned char brust_f1;
375
    unsigned char pack_f1;
376
    unsigned char data_type_f1;
377
    unsigned char brust_f2;
378
    unsigned char pack_f2;
379
    unsigned char data_type_f2;
380
    unsigned char end_prog;
381
    unsigned char repeat;
382
    unsigned char auto_init;
383
    unsigned char priority;
384
    unsigned char fs;
385
    unsigned char running;
386
    unsigned char bs;
387
    unsigned char omap_3_1_compatible_disable;
388
    unsigned char dst;
389
    unsigned char lch_type;
390
    int16_t element_index_f1;
391
    int16_t element_index_f2;
392
    int32_t frame_index_f1;
393
    int32_t frame_index_f2;
394
    uint16_t elements_f1;
395
    uint16_t frames_f1;
396
    uint16_t elements_f2;
397
    uint16_t frames_f2;
398
    omap_dma_addressing_t mode_f1;
399
    omap_dma_addressing_t mode_f2;
400

  
359 401
    /* Destination port is fixed.  */
360 402
    int interrupts;
361 403
    int condition;

Also available in: Unified diff