Subversion Repositories HelenOS

Rev

Rev 4153 | Go to most recent revision | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 4153 Rev 4263
Line 181... Line 181...
181
    ofw_tree_property_t *prop;
181
    ofw_tree_property_t *prop;
182
 
182
 
183
    /*
183
    /*
184
     * First, verify this is a PCI node.
184
     * First, verify this is a PCI node.
185
     */
185
     */
186
    ASSERT(strcmp(ofw_tree_node_name(node), "pci") == 0);
186
    ASSERT(str_cmp(ofw_tree_node_name(node), "pci") == 0);
187
 
187
 
188
    /*
188
    /*
189
     * Determine PCI controller model.
189
     * Determine PCI controller model.
190
     */
190
     */
191
    prop = ofw_tree_getprop(node, "model");
191
    prop = ofw_tree_getprop(node, "model");
192
    if (!prop || !prop->value)
192
    if (!prop || !prop->value)
193
        return NULL;
193
        return NULL;
194
   
194
   
195
    if (strcmp(prop->value, "SUNW,sabre") == 0) {
195
    if (str_cmp(prop->value, "SUNW,sabre") == 0) {
196
        /*
196
        /*
197
         * PCI controller Sabre.
197
         * PCI controller Sabre.
198
         * This model is found on UltraSPARC IIi based machines.
198
         * This model is found on UltraSPARC IIi based machines.
199
         */
199
         */
200
        return pci_sabre_init(node);
200
        return pci_sabre_init(node);
201
    } else if (strcmp(prop->value, "SUNW,psycho") == 0) {
201
    } else if (str_cmp(prop->value, "SUNW,psycho") == 0) {
202
        /*
202
        /*
203
         * PCI controller Psycho.
203
         * PCI controller Psycho.
204
         * Used on UltraSPARC II based processors, for instance,
204
         * Used on UltraSPARC II based processors, for instance,
205
         * on Ultra 60.
205
         * on Ultra 60.
206
         */
206
         */