Revision b4e3104b hw/omap.h

b/hw/omap.h
1 1
/*
2 2
 * Texas Instruments OMAP processors.
3 3
 *
4
 * Copyright (C) 2006-2007 Andrzej Zaborowski  <balrog@zabor.org>
4
 * Copyright (C) 2006-2008 Andrzej Zaborowski  <balrog@zabor.org>
5 5
 *
6 6
 * This program is free software; you can redistribute it and/or
7 7
 * modify it under the terms of the GNU General Public License as
......
54 54
int64_t omap_clk_getrate(omap_clk clk);
55 55
void omap_clk_reparent(omap_clk clk, omap_clk parent);
56 56

  
57
/* omap.c */
57
/* omap[123].c */
58 58
struct omap_intr_handler_s;
59 59
struct omap_intr_handler_s *omap_inth_init(target_phys_addr_t base,
60 60
                unsigned long size, unsigned char nbanks,
......
340 340
# define OMAP_INT_243X_HS_USB_DMA	93
341 341
# define OMAP_INT_243X_CARKIT		94
342 342

  
343
/* omap_dma.c */
343 344
enum omap_dma_model {
344
    omap_dma_3_1 = 0,
345
    omap_dma_3_2
345
    omap_dma_3_0,
346
    omap_dma_3_1,
347
    omap_dma_3_2,
348
    omap_dma_4,
346 349
};
347 350

  
348 351
struct omap_dma_s;
349 352
struct omap_dma_s *omap_dma_init(target_phys_addr_t base, qemu_irq *irqs,
350 353
                qemu_irq lcd_irq, struct omap_mpu_state_s *mpu, omap_clk clk,
351 354
                enum omap_dma_model model);
355
void omap_dma_reset(struct omap_dma_s *s);
352 356

  
357
struct dma_irq_map {
358
    int ih;
359
    int intr;
360
};
361

  
362
/* Only used in OMAP DMA 3.x gigacells */
353 363
enum omap_dma_port {
354 364
    emiff = 0,
355 365
    emifs,
......
367 377
    double_index,
368 378
} omap_dma_addressing_t;
369 379

  
380
/* Only used in OMAP DMA 3.x gigacells */
370 381
struct omap_dma_lcd_channel_s {
371 382
    enum omap_dma_port src;
372 383
    target_phys_addr_t src_f1_top;
......
411 422
    ram_addr_t phys_framebuffer[2];
412 423
    qemu_irq irq;
413 424
    struct omap_mpu_state_s *mpu;
414
};
425
} *omap_dma_get_lcdch(struct omap_dma_s *s);
415 426

  
416 427
/*
417 428
 * DMA request numbers for OMAP1
......
477 488
# define OMAP_DMA_MMC2_RX		55
478 489
# define OMAP_DMA_CRYPTO_DES_OUT	56
479 490

  
491
/* omap[123].c */
480 492
struct omap_mpu_timer_s;
481 493
struct omap_mpu_timer_s *omap_mpu_timer_init(target_phys_addr_t base,
482 494
                qemu_irq irq, omap_clk clk);

Also available in: Unified diff