~ubuntu-branches/ubuntu/lucid/sdlmame/lucid

« back to all changes in this revision

Viewing changes to src/mame/drivers/gamecstl.c

  • Committer: Bazaar Package Importer
  • Author(s): Cesare Falco
  • Date: 2009-11-03 17:10:15 UTC
  • mfrom: (1.1.5 upstream)
  • Revision ID: james.westby@ubuntu.com-20091103171015-6hop4ory5lxnumpn
Tags: 0.135-0ubuntu1
* New upstream release - Closes (LP: #403212)
* debian/watch: unstable releases are no longer detected
* mame.ini: added the cheat subdirectories to cheatpath so zipped
  cheatfiles will be searched too
* renamed crsshair subdirectory to crosshair to reflect upstream change
* mame.ini: renamed references to crosshair subdirectory (see above)

Show diffs side-by-side

added added

removed removed

Lines of Context:
420
420
}
421
421
 
422
422
 
 
423
static DMA8237_HRQ_CHANGED( pc_dma_hrq_changed )
 
424
{
 
425
        cputag_set_input_line(device->machine, "maincpu", INPUT_LINE_HALT, state ? ASSERT_LINE : CLEAR_LINE);
 
426
 
 
427
        /* Assert HLDA */
 
428
        dma8237_set_hlda( device, state );
 
429
}
 
430
 
 
431
 
423
432
static DMA8237_MEM_READ( pc_dma_read_byte )
424
433
{
425
434
        const address_space *space = cputag_get_address_space(device->machine, "maincpu", ADDRESS_SPACE_PROGRAM);
442
451
 
443
452
static const struct dma8237_interface dma8237_1_config =
444
453
{
445
 
        "maincpu",
446
 
        1.0e-6, // 1us
 
454
        XTAL_14_31818MHz/3,
447
455
 
 
456
        pc_dma_hrq_changed,
448
457
        pc_dma_read_byte,
449
458
        pc_dma_write_byte,
450
459
 
451
 
        { 0, 0, NULL, NULL },
452
 
        { 0, 0, NULL, NULL },
 
460
        { NULL, NULL, NULL, NULL },
 
461
        { NULL, NULL, NULL, NULL },
453
462
        NULL
454
463
};
455
464
 
456
465
 
457
466
static const struct dma8237_interface dma8237_2_config =
458
467
{
459
 
        "maincpu",
460
 
        1.0e-6, // 1us
 
468
        XTAL_14_31818MHz/3,
461
469
 
 
470
        NULL,
462
471
        NULL,
463
472
        NULL,
464
473