~ubuntu-branches/ubuntu/quantal/vice/quantal

« back to all changes in this revision

Viewing changes to src/drive/iec/iec.c

  • Committer: Bazaar Package Importer
  • Author(s): Zed Pobre
  • Date: 2006-07-30 19:15:59 UTC
  • mto: (9.1.1 lenny) (1.1.6 upstream)
  • mto: This revision was merged to the branch mainline in revision 9.
  • Revision ID: james.westby@ubuntu.com-20060730191559-g31ymd2mk102kzff
Tags: upstream-1.19
ImportĀ upstreamĀ versionĀ 1.19

Show diffs side-by-side

added added

removed removed

Lines of Context:
77
77
 
78
78
void iec_drive_reset(struct drive_context_s *drv)
79
79
{
80
 
    viacore_reset(drv->via1d1541);
81
 
    ciacore_reset(drv->cia1571);
82
 
    ciacore_reset(drv->cia1581);
 
80
    if (drv->drive->type == DRIVE_TYPE_1541
 
81
        || drv->drive->type == DRIVE_TYPE_1541II
 
82
        || drv->drive->type == DRIVE_TYPE_1570
 
83
        || drv->drive->type == DRIVE_TYPE_1571
 
84
        || drv->drive->type == DRIVE_TYPE_1571CR)
 
85
    {
 
86
        viacore_reset(drv->via1d1541);
 
87
    } else {
 
88
        viacore_disable(drv->via1d1541);
 
89
    }
 
90
 
 
91
    if (drv->drive->type == DRIVE_TYPE_1570
 
92
        || drv->drive->type == DRIVE_TYPE_1571
 
93
        || drv->drive->type == DRIVE_TYPE_1571CR)
 
94
    {
 
95
        ciacore_reset(drv->cia1571);
 
96
    } else {
 
97
        ciacore_disable(drv->cia1571);
 
98
    }
 
99
 
 
100
    if (drv->drive->type == DRIVE_TYPE_1581)
 
101
    {
 
102
        ciacore_reset(drv->cia1581);
 
103
    } else {
 
104
        ciacore_disable(drv->cia1581);
 
105
    }
 
106
    /* FIXME:  which drive type needs this chip?? */
83
107
    wd1770d_reset(drv);
84
108
}
85
109