1 #
   2 # CDDL HEADER START
   3 #
   4 # The contents of this file are subject to the terms of the
   5 # Common Development and Distribution License (the "License").
   6 # You may not use this file except in compliance with the License.
   7 #
   8 # You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
   9 # or http://www.opensolaris.org/os/licensing.
  10 # See the License for the specific language governing permissions
  11 # and limitations under the License.
  12 #
  13 # When distributing Covered Code, include this CDDL HEADER in each
  14 # file and include the License file at usr/src/OPENSOLARIS.LICENSE.
  15 # If applicable, add the following below this CDDL HEADER, with the
  16 # fields enclosed by brackets "[]" replaced with your own identifying
  17 # information: Portions Copyright [yyyy] [name of copyright owner]
  18 #
  19 # CDDL HEADER END
  20 #
  21 #
  22 # Copyright (c) 1989, 2010, Oracle and/or its affiliates. All rights reserved.
  23 # Copyright 2012, Joyent, Inc. All rights reserved.
  24 #
  25 
  26 include $(SRC)/uts/Makefile.uts
  27 
  28 FILEMODE=644
  29 
  30 #
  31 #       Note that the following headers are present in the kernel but
  32 #       neither installed or shipped as part of the product:
  33 #               cpuid_drv.h:            Private interface for cpuid consumers
  34 #               unix_bb_info.h:         Private interface to kcov
  35 #
  36 
  37 i386_HDRS=                      \
  38         agp/agpamd64gart_io.h   \
  39         agp/agpdefs.h           \
  40         agp/agpgart_impl.h      \
  41         agp/agpmaster_io.h      \
  42         agp/agptarget_io.h      \
  43         agpgart.h               \
  44         asy.h                   \
  45         fd_debug.h              \
  46         fdc.h                   \
  47         fdmedia.h               \
  48         mouse.h                 \
  49         ucode.h
  50 
  51 sparc_HDRS=                     \
  52         mouse.h                 \
  53         scsi/targets/ssddef.h   \
  54         $(MDESCHDRS)
  55 
  56 # Generated headers
  57 GENHDRS=                        \
  58         priv_const.h            \
  59         priv_names.h            \
  60         usb/usbdevs.h
  61 
  62 CHKHDRS=                        \
  63         acpi_drv.h              \
  64         acct.h                  \
  65         acctctl.h               \
  66         acl.h                   \
  67         acl_impl.h              \
  68         aggr.h                  \
  69         aggr_impl.h             \
  70         aio.h                   \
  71         aio_impl.h              \
  72         aio_req.h               \
  73         aiocb.h                 \
  74         ascii.h                 \
  75         asynch.h                \
  76         atomic.h                \
  77         attr.h                  \
  78         audio.h                 \
  79         audioio.h               \
  80         autoconf.h              \
  81         auxv.h                  \
  82         auxv_386.h              \
  83         auxv_SPARC.h            \
  84         avl.h                   \
  85         avl_impl.h              \
  86         bitmap.h                \
  87         bitset.h                \
  88         bl.h                    \
  89         blkdev.h                \
  90         bofi.h                  \
  91         bofi_impl.h             \
  92         bpp_io.h                \
  93         bootstat.h              \
  94         brand.h                 \
  95         buf.h                   \
  96         bufmod.h                \
  97         bustypes.h              \
  98         byteorder.h             \
  99         callb.h                 \
 100         callo.h                 \
 101         cap_util.h              \
 102         cpucaps.h               \
 103         cpucaps_impl.h          \
 104         ccompile.h              \
 105         cdio.h                  \
 106         cladm.h                 \
 107         class.h                 \
 108         clconf.h                \
 109         clock_impl.h            \
 110         cmlb.h                  \
 111         cmn_err.h               \
 112         compress.h              \
 113         condvar.h               \
 114         condvar_impl.h          \
 115         conf.h                  \
 116         consdev.h               \
 117         console.h               \
 118         consplat.h              \
 119         vt.h                    \
 120         vtdaemon.h              \
 121         kd.h                    \
 122         contract.h              \
 123         contract_impl.h         \
 124         copyops.h               \
 125         core.h                  \
 126         corectl.h               \
 127         cpc_impl.h              \
 128         cpc_pcbe.h              \
 129         cpr.h                   \
 130         cpupart.h               \
 131         cpuvar.h                \
 132         crc32.h                 \
 133         cred.h                  \
 134         cred_impl.h             \
 135         crtctl.h                \
 136         cryptmod.h              \
 137         csiioctl.h              \
 138         ctf.h                   \
 139         ctfs.h                  \
 140         ctfs_impl.h             \
 141         ctf_api.h               \
 142         ctype.h                 \
 143         cyclic.h                \
 144         cyclic_impl.h           \
 145         dacf.h                  \
 146         dacf_impl.h             \
 147         damap.h                 \
 148         damap_impl.h            \
 149         dc_ki.h                 \
 150         ddi.h                   \
 151         ddifm.h                 \
 152         ddifm_impl.h            \
 153         ddi_hp.h                \
 154         ddi_hp_impl.h           \
 155         ddi_intr.h              \
 156         ddi_intr_impl.h         \
 157         ddi_impldefs.h          \
 158         ddi_implfuncs.h         \
 159         ddi_obsolete.h          \
 160         ddi_timer.h             \
 161         ddidevmap.h             \
 162         ddidmareq.h             \
 163         ddimapreq.h             \
 164         ddipropdefs.h           \
 165         dditypes.h              \
 166         debug.h                 \
 167         des.h                   \
 168         devctl.h                \
 169         devcache.h              \
 170         devcache_impl.h         \
 171         devfm.h                 \
 172         devid_cache.h           \
 173         devinfo_impl.h          \
 174         devops.h                \
 175         devpolicy.h             \
 176         devpoll.h               \
 177         dirent.h                \
 178         disp.h                  \
 179         dkbad.h                 \
 180         dkio.h                  \
 181         dklabel.h               \
 182         dl.h                    \
 183         dlpi.h                  \
 184         dld.h                   \
 185         dld_impl.h              \
 186         dld_ioc.h               \
 187         dls.h                   \
 188         dls_mgmt.h              \
 189         dls_impl.h              \
 190         dma_i8237A.h            \
 191         dnlc.h                  \
 192         door.h                  \
 193         door_data.h             \
 194         door_impl.h             \
 195         dtrace.h                \
 196         dtrace_impl.h           \
 197         dumpadm.h               \
 198         dumphdr.h               \
 199         ecppsys.h               \
 200         ecppio.h                \
 201         ecppreg.h               \
 202         ecppvar.h               \
 203         efi_partition.h         \
 204         elf.h                   \
 205         elf_386.h               \
 206         elf_SPARC.h             \
 207         elf_notes.h             \
 208         elf_amd64.h             \
 209         elftypes.h              \
 210         emul64.h                \
 211         emul64cmd.h             \
 212         emul64var.h             \
 213         epm.h                   \
 214         errno.h                 \
 215         errorq.h                \
 216         errorq_impl.h           \
 217         esunddi.h               \
 218         ethernet.h              \
 219         euc.h                   \
 220         eucioctl.h              \
 221         exacct.h                \
 222         exacct_catalog.h        \
 223         exacct_impl.h           \
 224         exec.h                  \
 225         exechdr.h               \
 226         extdirent.h             \
 227         fault.h                 \
 228         fasttrap.h              \
 229         fasttrap_impl.h         \
 230         fbio.h                  \
 231         fbuf.h                  \
 232         fcntl.h                 \
 233         fct.h                   \
 234         fct_defines.h           \
 235         fctio.h                 \
 236         fdbuffer.h              \
 237         fdio.h                  \
 238         feature_tests.h         \
 239         fem.h                   \
 240         file.h                  \
 241         filio.h                 \
 242         flock.h                 \
 243         flock_impl.h            \
 244         fork.h                  \
 245         fss.h                   \
 246         fsspriocntl.h           \
 247         fsid.h                  \
 248         fssnap.h                \
 249         fssnap_if.h             \
 250         fstyp.h                 \
 251         ftrace.h                \
 252         fx.h                    \
 253         fxpriocntl.h            \
 254         gfs.h                   \
 255         gld.h                   \
 256         gldpriv.h               \
 257         group.h                 \
 258         hdio.h                  \
 259         hook.h                  \
 260         hook_event.h            \
 261         hook_impl.h             \
 262         hwconf.h                \
 263         ia.h                    \
 264         iapriocntl.h            \
 265         ibpart.h                \
 266         id32.h                  \
 267         idmap.h                 \
 268         ieeefp.h                \
 269         id_space.h              \
 270         instance.h              \
 271         int_const.h             \
 272         int_fmtio.h             \
 273         int_limits.h            \
 274         int_types.h             \
 275         inttypes.h              \
 276         ioccom.h                \
 277         ioctl.h                 \
 278         ipc.h                   \
 279         ipc_impl.h              \
 280         ipc_rctl.h              \
 281         ipd.h                   \
 282         ipmi.h                  \
 283         isa_defs.h              \
 284         iscsi_authclient.h      \
 285         iscsi_authclientglue.h  \
 286         iscsi_protocol.h        \
 287         jioctl.h                \
 288         kbd.h                   \
 289         kbdreg.h                \
 290         kbio.h                  \
 291         kcpc.h                  \
 292         kdi.h                   \
 293         kdi_impl.h              \
 294         kiconv.h                \
 295         kiconv_big5_utf8.h      \
 296         kiconv_cck_common.h     \
 297         kiconv_cp950hkscs_utf8.h        \
 298         kiconv_emea1.h          \
 299         kiconv_emea2.h          \
 300         kiconv_euckr_utf8.h     \
 301         kiconv_euctw_utf8.h     \
 302         kiconv_gb18030_utf8.h   \
 303         kiconv_gb2312_utf8.h    \
 304         kiconv_hkscs_utf8.h     \
 305         kiconv_ja.h             \
 306         kiconv_ja_jis_to_unicode.h      \
 307         kiconv_ja_unicode_to_jis.h      \
 308         kiconv_ko.h             \
 309         kiconv_latin1.h         \
 310         kiconv_sc.h             \
 311         kiconv_tc.h             \
 312         kiconv_uhc_utf8.h       \
 313         kiconv_utf8_big5.h      \
 314         kiconv_utf8_cp950hkscs.h        \
 315         kiconv_utf8_euckr.h     \
 316         kiconv_utf8_euctw.h     \
 317         kiconv_utf8_gb18030.h   \
 318         kiconv_utf8_gb2312.h    \
 319         kiconv_utf8_hkscs.h     \
 320         kiconv_utf8_uhc.h       \
 321         kidmap.h                \
 322         klpd.h                  \
 323         klwp.h                  \
 324         kmdb.h                  \
 325         kmem.h                  \
 326         kmem_impl.h             \
 327         kobj.h                  \
 328         kobj_impl.h             \
 329         ksocket.h               \
 330         kstat.h                 \
 331         kstr.h                  \
 332         ksyms.h                 \
 333         ksynch.h                \
 334         ldterm.h                \
 335         lgrp.h                  \
 336         lgrp_user.h             \
 337         libc_kernel.h           \
 338         link.h                  \
 339         list.h                  \
 340         list_impl.h             \
 341         llc1.h                  \
 342         loadavg.h               \
 343         lock.h                  \
 344         lockfs.h                \
 345         lockstat.h              \
 346         lofi.h                  \
 347         log.h                   \
 348         logindmux.h             \
 349         logindmux_impl.h        \
 350         lwp.h                   \
 351         lwp_timer_impl.h        \
 352         lwp_upimutex_impl.h     \
 353         lpif.h                  \
 354         mac.h                   \
 355         mac_client.h            \
 356         mac_client_impl.h       \
 357         mac_ether.h             \
 358         mac_flow.h              \
 359         mac_flow_impl.h         \
 360         mac_impl.h              \
 361         mac_provider.h          \
 362         mac_soft_ring.h         \
 363         mac_stat.h              \
 364         machelf.h               \
 365         map.h                   \
 366         md4.h                   \
 367         md5.h                   \
 368         md5_consts.h            \
 369         mdi_impldefs.h          \
 370         mem.h                   \
 371         mem_config.h            \
 372         memlist.h               \
 373         mkdev.h                 \
 374         mhd.h                   \
 375         mii.h                   \
 376         miiregs.h               \
 377         mixer.h                 \
 378         mman.h                  \
 379         mmapobj.h               \
 380         mntent.h                \
 381         mntio.h                 \
 382         mnttab.h                \
 383         modctl.h                \
 384         mode.h                  \
 385         model.h                 \
 386         modhash.h               \
 387         modhash_impl.h          \
 388         mount.h                 \
 389         mouse.h                 \
 390         msacct.h                \
 391         msg.h                   \
 392         msg_impl.h              \
 393         msio.h                  \
 394         msreg.h                 \
 395         mtio.h                  \
 396         multidata.h             \
 397         multidata_impl.h        \
 398         mutex.h                 \
 399         nbmlock.h               \
 400         ndifm.h                 \
 401         ndi_impldefs.h          \
 402         net80211.h              \
 403         net80211_crypto.h       \
 404         net80211_ht.h           \
 405         net80211_proto.h        \
 406         netconfig.h             \
 407         neti.h                  \
 408         netstack.h              \
 409         nexusdefs.h             \
 410         note.h                  \
 411         nvpair.h                \
 412         nvpair_impl.h           \
 413         objfs.h                 \
 414         objfs_impl.h            \
 415         ontrap.h                \
 416         open.h                  \
 417         openpromio.h            \
 418         panic.h                 \
 419         param.h                 \
 420         pathconf.h              \
 421         pathname.h              \
 422         pattr.h                 \
 423         queue.h                 \
 424         serializer.h            \
 425         pbio.h                  \
 426         pccard.h                \
 427         pci.h                   \
 428         pcie.h                  \
 429         pci_impl.h              \
 430         pci_tools.h             \
 431         pcmcia.h                \
 432         pctypes.h               \
 433         pfmod.h                 \
 434         pg.h                    \
 435         pghw.h                  \
 436         physmem.h               \
 437         pkp_hash.h              \
 438         pm.h                    \
 439         policy.h                \
 440         poll.h                  \
 441         poll_impl.h             \
 442         pool.h                  \
 443         pool_impl.h             \
 444         pool_pset.h             \
 445         port.h                  \
 446         port_impl.h             \
 447         port_kernel.h           \
 448         portif.h                \
 449         ppmio.h                 \
 450         pppt_ic_if.h            \
 451         pppt_ioctl.h            \
 452         priocntl.h              \
 453         priv.h                  \
 454         priv_impl.h             \
 455         prnio.h                 \
 456         proc.h                  \
 457         processor.h             \
 458         procfs.h                \
 459         procset.h               \
 460         project.h               \
 461         protosw.h               \
 462         prsystm.h               \
 463         pset.h                  \
 464         pshot.h                 \
 465         ptem.h                  \
 466         ptms.h                  \
 467         ptyvar.h                \
 468         raidioctl.h             \
 469         ramdisk.h               \
 470         random.h                \
 471         rctl.h                  \
 472         rctl_impl.h             \
 473         rds.h                   \
 474         reboot.h                \
 475         refstr.h                \
 476         refstr_impl.h           \
 477         resource.h              \
 478         rlioctl.h               \
 479         rt.h                    \
 480         rtpriocntl.h            \
 481         rwlock.h                \
 482         rwlock_impl.h           \
 483         rwstlock.h              \
 484         sad.h                   \
 485         schedctl.h              \
 486         sdt.h                   \
 487         select.h                \
 488         sem.h                   \
 489         sem_impl.h              \
 490         sema_impl.h             \
 491         semaphore.h             \
 492         sendfile.h              \
 493         ser_sync.h              \
 494         session.h               \
 495         sha1.h                  \
 496         sha1_consts.h           \
 497         sha2.h                  \
 498         sha2_consts.h           \
 499         share.h                 \
 500         shm.h                   \
 501         shm_impl.h              \
 502         sid.h                   \
 503         siginfo.h               \
 504         signal.h                \
 505         sleepq.h                \
 506         smbios.h                \
 507         smbios_impl.h           \
 508         sobject.h               \
 509         socket.h                \
 510         socket_impl.h           \
 511         socket_proto.h          \
 512         socketvar.h             \
 513         sockfilter.h            \
 514         sockio.h                \
 515         soundcard.h             \
 516         squeue.h                \
 517         squeue_impl.h           \
 518         srn.h                   \
 519         sservice.h              \
 520         stat.h                  \
 521         statfs.h                \
 522         statvfs.h               \
 523         stdbool.h               \
 524         stdint.h                \
 525         stermio.h               \
 526         stmf.h                  \
 527         stmf_defines.h          \
 528         stmf_ioctl.h            \
 529         stmf_sbd_ioctl.h        \
 530         stream.h                \
 531         strft.h                 \
 532         strlog.h                \
 533         strmdep.h               \
 534         stropts.h               \
 535         strredir.h              \
 536         strstat.h               \
 537         strsubr.h               \
 538         strsun.h                \
 539         strtty.h                \
 540         sunddi.h                \
 541         sunldi.h                \
 542         sunldi_impl.h           \
 543         sunmdi.h                \
 544         sunndi.h                \
 545         sunos_dhcp_class.h      \
 546         sunpm.h                 \
 547         suntpi.h                \
 548         suntty.h                \
 549         swap.h                  \
 550         synch.h                 \
 551         sysdc.h                 \
 552         sysdc_impl.h            \
 553         syscall.h               \
 554         sysconf.h               \
 555         sysconfig.h             \
 556         sysevent.h              \
 557         sysevent_impl.h         \
 558         sysinfo.h               \
 559         syslog.h                \
 560         sysmacros.h             \
 561         sysmsg_impl.h           \
 562         systeminfo.h            \
 563         systm.h                 \
 564         task.h                  \
 565         taskq.h                 \
 566         taskq_impl.h            \
 567         t_kuser.h               \
 568         t_lock.h                \
 569         telioctl.h              \
 570         termio.h                \
 571         termios.h               \
 572         termiox.h               \
 573         thread.h                \
 574         ticlts.h                \
 575         ticots.h                \
 576         ticotsord.h             \
 577         tihdr.h                 \
 578         time.h                  \
 579         time_impl.h             \
 580         time_std_impl.h         \
 581         timeb.h                 \
 582         timer.h                 \
 583         times.h                 \
 584         timex.h                 \
 585         timod.h                 \
 586         tirdwr.h                \
 587         tiuser.h                \
 588         tl.h                    \
 589         tnf.h                   \
 590         tnf_com.h               \
 591         tnf_probe.h             \
 592         tnf_writer.h            \
 593         todio.h                 \
 594         tpicommon.h             \
 595         ts.h                    \
 596         tspriocntl.h            \
 597         ttcompat.h              \
 598         ttold.h                 \
 599         tty.h                   \
 600         ttychars.h              \
 601         ttydev.h                \
 602         tuneable.h              \
 603         turnstile.h             \
 604         types.h                 \
 605         types32.h               \
 606         tzfile.h                \
 607         u8_textprep.h           \
 608         u8_textprep_data.h      \
 609         uadmin.h                \
 610         ucred.h                 \
 611         uio.h                   \
 612         ulimit.h                \
 613         un.h                    \
 614         unistd.h                \
 615         user.h                  \
 616         ustat.h                 \
 617         utime.h                 \
 618         utsname.h               \
 619         utssys.h                \
 620         uuid.h                  \
 621         va_impl.h               \
 622         va_list.h               \
 623         var.h                   \
 624         varargs.h               \
 625         vfs.h                   \
 626         vfs_opreg.h             \
 627         vfstab.h                \
 628         vgareg.h                \
 629         videodev2.h             \
 630         visual_io.h             \
 631         vlan.h                  \
 632         vm.h                    \
 633         vm_usage.h              \
 634         vmem.h                  \
 635         vmem_impl.h             \
 636         vmsystm.h               \
 637         vnic.h                  \
 638         vnic_impl.h             \
 639         vnode.h                 \
 640         vscan.h                 \
 641         vtoc.h                  \
 642         vtrace.h                \
 643         vuid_event.h            \
 644         vuid_wheel.h            \
 645         vuid_queue.h            \
 646         vuid_state.h            \
 647         vuid_store.h            \
 648         wait.h                  \
 649         waitq.h                 \
 650         wanboot_impl.h          \
 651         watchpoint.h            \
 652         winlockio.h             \
 653         zcons.h                 \
 654         zone.h                  \
 655         xti_inet.h              \
 656         xti_osi.h               \
 657         xti_xtiopt.h            \
 658         zmod.h
 659 
 660 HDRS=                           \
 661         $(GENHDRS)              \
 662         $(CHKHDRS)
 663 
 664 AUDIOHDRS=                      \
 665         ac97.h                  \
 666         audio_common.h          \
 667         audio_driver.h          \
 668         audio_oss.h             \
 669         g711.h
 670 
 671 AVHDRS=                         \
 672         iec61883.h
 673 
 674 BSCHDRS=                        \
 675         bscbus.h                \
 676         bscv_impl.h             \
 677         lom_ebuscodes.h         \
 678         lom_io.h                \
 679         lom_priv.h              \
 680         lombus.h
 681 
 682 MDESCHDRS=                      \
 683         mdesc.h                 \
 684         mdesc_impl.h            
 685 
 686 CPUDRVHDRS=                     \
 687         cpudrv.h
 688 
 689 CRYPTOHDRS=                     \
 690         elfsign.h               \
 691         ioctl.h                 \
 692         ioctladmin.h            \
 693         common.h                \
 694         impl.h                  \
 695         spi.h                   \
 696         api.h                   \
 697         ops_impl.h              \
 698         sched_impl.h
 699 
 700 DCAMHDRS=                       \
 701         dcam1394_io.h
 702 
 703 IBHDRS=                 \
 704         ib_types.h      \
 705         ib_pkt_hdrs.h
 706 
 707 IBTLHDRS=               \
 708         ibtl_types.h    \
 709         ibtl_status.h   \
 710         ibti.h          \
 711         ibti_cm.h       \
 712         ibci.h          \
 713         ibti_common.h   \
 714         ibvti.h         \
 715         ibtl_ci_types.h
 716 
 717 IBTLIMPLHDRS=           \
 718         ibtl_util.h
 719 
 720 IBNEXHDRS=              \
 721         ibnex_devctl.h
 722 
 723 IBMFHDRS=               \
 724         ibmf.h          \
 725         ibmf_msg.h      \
 726         ibmf_saa.h      \
 727         ibmf_utils.h
 728 
 729 IBMGTHDRS=              \
 730         ib_dm_attr.h    \
 731         ib_mad.h        \
 732         sm_attr.h       \
 733         sa_recs.h
 734 
 735 IBDHDRS=                \
 736         ibd.h
 737 
 738 OFHDRS=                 \
 739         ofa_solaris.h   \
 740         ofed_kernel.h
 741 
 742 RDMAHDRS=               \
 743         ib_addr.h       \
 744         ib_user_mad.h   \
 745         ib_user_sa.h    \
 746         ib_user_verbs.h \
 747         ib_verbs.h      \
 748         rdma_cm.h       \
 749         rdma_user_cm.h
 750 
 751 SOL_UVERBSHDRS=         \
 752         sol_uverbs.h    \
 753         sol_uverbs2ucma.h       \
 754         sol_uverbs_comp.h       \
 755         sol_uverbs_hca.h        \
 756         sol_uverbs_qp.h         \
 757         sol_uverbs_event.h
 758 
 759 SOL_UMADHDRS=           \
 760         sol_umad.h
 761 
 762 SOL_UCMAHDRS=           \
 763         sol_ucma.h      \
 764         sol_rdma_user_cm.h
 765 
 766 SOL_OFSHDRS=            \
 767         sol_cma.h       \
 768         sol_ib_cma.h    \
 769         sol_ofs_common.h        \
 770         sol_kverb_impl.h
 771 
 772 TAVORHDRS=              \
 773         tavor_ioctl.h
 774 
 775 HERMONHDRS=             \
 776         hermon_ioctl.h
 777 
 778 MLNXHDRS=               \
 779         mlnx_umap.h
 780 
 781 IDMHDRS=                \
 782         idm.h           \
 783         idm_impl.h      \
 784         idm_so.h        \
 785         idm_text.h      \
 786         idm_transport.h \
 787         idm_conn_sm.h
 788 
 789 ISCSITHDRS=             \
 790         radius_packet.h         \
 791         radius_protocol.h       \
 792         chap.h                  \
 793         isns_protocol.h         \
 794         iscsi_if.h              \
 795         iscsit_common.h
 796 
 797 ISOHDRS=                        \
 798         signal_iso.h
 799 
 800 DERIVED_LVMHDRS=        \
 801         md_mdiox.h              \
 802         md_basic.h              \
 803         mdmed.h                 \
 804         md_mhdx.h               \
 805         mdmn_commd.h
 806 
 807 LVMHDRS=                        \
 808         md_convert.h            \
 809         md_crc.h                \
 810         md_hotspares.h          \
 811         md_mddb.h               \
 812         md_mirror.h             \
 813         md_mirror_shared.h      \
 814         md_names.h              \
 815         md_notify.h             \
 816         md_raid.h               \
 817         md_rename.h             \
 818         md_sp.h                 \
 819         md_stripe.h             \
 820         md_trans.h              \
 821         mdio.h                  \
 822         mdvar.h                 
 823 
 824 ALL_LVMHDRS=                    \
 825         $(LVMHDRS)              \
 826         $(DERIVED_LVMHDRS)
 827 
 828 FMHDRS=                         \
 829         protocol.h              \
 830         util.h
 831 
 832 FMFSHDRS=                       \
 833         zfs.h
 834 
 835 FMIOHDRS=                       \
 836         ddi.h                   \
 837         disk.h                  \
 838         pci.h                   \
 839         scsi.h                  \
 840         sun4upci.h              \
 841         opl_mc_fm.h
 842 
 843 FSHDRS=                         \
 844         autofs.h                \
 845         cachefs_dir.h           \
 846         cachefs_dlog.h          \
 847         cachefs_filegrp.h       \
 848         cachefs_fs.h            \
 849         cachefs_fscache.h       \
 850         cachefs_ioctl.h         \
 851         cachefs_log.h           \
 852         decomp.h                \
 853         dv_node.h               \
 854         sdev_impl.h             \
 855         fifonode.h              \
 856         hsfs_isospec.h          \
 857         hsfs_node.h             \
 858         hsfs_rrip.h             \
 859         hsfs_spec.h             \
 860         hsfs_susp.h             \
 861         hyprlofs.h              \
 862         hyprlofs_info.h         \
 863         lofs_info.h             \
 864         lofs_node.h             \
 865         mntdata.h               \
 866         namenode.h              \
 867         pc_dir.h                \
 868         pc_fs.h                 \
 869         pc_label.h              \
 870         pc_node.h               \
 871         pxfs_ki.h               \
 872         snode.h                 \
 873         swapnode.h              \
 874         tmp.h                   \
 875         tmpnode.h               \
 876         udf_inode.h             \
 877         udf_volume.h            \
 878         ufs_acl.h               \
 879         ufs_bio.h               \
 880         ufs_filio.h             \
 881         ufs_fs.h                \
 882         ufs_fsdir.h             \
 883         ufs_inode.h             \
 884         ufs_lockfs.h            \
 885         ufs_log.h               \
 886         ufs_mount.h             \
 887         ufs_panic.h             \
 888         ufs_prot.h              \
 889         ufs_quota.h             \
 890         ufs_snap.h              \
 891         ufs_trans.h             \
 892         zfs.h                   \
 893         zut.h
 894 
 895 PCMCIAHDRS=             \
 896         pcata.h         \
 897         pcser_conf.h    \
 898         pcser_io.h      \
 899         pcser_reg.h     \
 900         pcser_manuspec.h \
 901         pcser_var.h
 902 
 903 SCSIHDRS=               \
 904         scsi.h          \
 905         scsi_address.h  \
 906         scsi_ctl.h      \
 907         scsi_fm.h       \
 908         scsi_params.h   \
 909         scsi_pkt.h      \
 910         scsi_resource.h \
 911         scsi_types.h    \
 912         scsi_watch.h
 913 
 914 SCSICONFHDRS=           \
 915         autoconf.h      \
 916         device.h
 917 
 918 SCSIGENHDRS=            \
 919         commands.h      \
 920         dad_mode.h      \
 921         inquiry.h       \
 922         message.h       \
 923         mode.h          \
 924         persist.h       \
 925         sense.h         \
 926         sff_frames.h    \
 927         smp_frames.h    \
 928         status.h
 929 
 930 SCSIIMPLHDRS=           \
 931         commands.h      \
 932         inquiry.h       \
 933         mode.h          \
 934         scsi_reset_notify.h \
 935         scsi_sas.h      \
 936         sense.h         \
 937         services.h      \
 938         smp_transport.h \
 939         spc3_types.h    \
 940         status.h        \
 941         transport.h     \
 942         types.h         \
 943         uscsi.h         \
 944         usmp.h
 945 
 946 SCSITARGETSHDRS=        \
 947         ses.h           \
 948         sesio.h         \
 949         sgendef.h       \
 950         stdef.h         \
 951         sddef.h         \
 952         smp.h
 953 
 954 SCSIADHDRS=
 955 
 956 SCSICADHDRS=
 957 
 958 SCSIISCSIHDRS=          \
 959         iscsi_door.h    \
 960         iscsi_if.h
 961 
 962 SCSIVHCIHDRS=           \
 963         scsi_vhci.h     \
 964         mpapi_impl.h    \
 965         mpapi_scsi_vhci.h
 966 
 967 SDCARDHDRS=             \
 968         sda.h           \
 969         sda_impl.h      \
 970         sda_ioctl.h
 971 
 972 FC4HDRS=                        \
 973         fc_transport.h  \
 974         linkapp.h       \
 975         fc.h            \
 976         fcp.h           \
 977         fcal_transport.h \
 978         fcal.h          \
 979         fcal_linkapp.h  \
 980         fcio.h
 981 
 982 FCHDRS=                 \
 983         fc.h            \
 984         fcio.h          \
 985         fc_types.h      \
 986         fc_appif.h
 987 
 988 FCIMPLHDRS=             \
 989         fc_error.h      \
 990         fcph.h
 991 
 992 FCULPHDRS=              \
 993         fcp_util.h      \
 994         fcsm.h
 995 
 996 SATAGENHDRS=            \
 997         sata_hba.h      \
 998         sata_defs.h     \
 999         sata_cfgadm.h
1000 
1001 SYSEVENTHDRS=           \
1002         ap_driver.h     \
1003         dev.h           \
1004         domain.h        \
1005         dr.h            \
1006         env.h           \
1007         eventdefs.h     \
1008         ipmp.h          \
1009         pwrctl.h        \
1010         svm.h           \
1011         vrrp.h
1012 
1013 CONTRACTHDRS=           \
1014         process.h       \
1015         process_impl.h  \
1016         device.h        \
1017         device_impl.h
1018 
1019 USBHDRS=        \
1020         usba.h  \
1021         usbai.h
1022 
1023 UWBHDRS=        \
1024         uwb.h   \
1025         uwbai.h
1026 
1027 UWBAHDRS=       \
1028         uwba.h
1029 
1030 USBAUDHDRS=           \
1031         usb_audio.h
1032 
1033 USBHUBDHDRS=            \
1034         hub.h           \
1035         hubd_impl.h
1036 
1037 USBHIDHDRS=             \
1038         hid.h
1039 
1040 USBHWARCHDRS=           \
1041         hwarc.h
1042 
1043 USBMSHDRS=              \
1044         usb_bulkonly.h  \
1045         usb_cbi.h
1046 
1047 USBPRNHDRS=           \
1048         usb_printer.h
1049 
1050 USBCDCHDRS=             \
1051         usb_cdc.h
1052 
1053 USBVIDHDRS=           \
1054         usbvc.h
1055 
1056 USBWCMHDRS=             \
1057         usbwcm.h
1058 
1059 UGENHDRS=           \
1060         usb_ugen.h
1061 
1062 HOTPLUGHDRS=    \
1063         hpcsvc.h        \
1064         hpctrl.h
1065 
1066 HOTPLUGPCIHDRS= \
1067         pcicfg.h        \
1068         pcihp.h
1069 
1070 RSMHDRS= \
1071         rsm.h   \
1072         rsm_common.h    \
1073         rsmapi_common.h \
1074         rsmpi.h \
1075         rsmpi_driver.h  \
1076         rsmka_path_int.h
1077 
1078 TSOLHDRS=               \
1079         label.h         \
1080         label_macro.h   \
1081         priv.h          \
1082         tndb.h          \
1083         tsyscall.h
1084 
1085 I1394HDRS=              \
1086         cmd1394.h       \
1087         id1394.h        \
1088         ieee1212.h      \
1089         ieee1394.h      \
1090         ixl1394.h       \
1091         s1394_impl.h    \
1092         t1394.h
1093 
1094 # "cmdk" headers used on sparc
1095 SDKTPHDRS=              \
1096         dadkio.h        \
1097         fdisk.h
1098 
1099 # "cmdk" headers used on i386
1100 DKTPHDRS=               \
1101         altsctr.h       \
1102         bbh.h           \
1103         cm.h            \
1104         cmdev.h         \
1105         cmdk.h          \
1106         cmpkt.h         \
1107         controller.h    \
1108         dadev.h         \
1109         dadk.h          \
1110         dadkio.h        \
1111         fctypes.h       \
1112         fdisk.h         \
1113         flowctrl.h      \
1114         gda.h           \
1115         quetypes.h      \
1116         queue.h         \
1117         tgcom.h         \
1118         tgdk.h
1119 
1120 # "pc" header files used on i386
1121 PCHDRS=                 \
1122         avintr.h        \
1123         dma_engine.h    \
1124         i8272A.h        \
1125         pcic_reg.h      \
1126         pcic_var.h      \
1127         pic.h           \
1128         pit.h           \
1129         rtc.h
1130 
1131 NXGEHDRS=                       \
1132         nxge.h                  \
1133         nxge_common.h           \
1134         nxge_common_impl.h      \
1135         nxge_defs.h             \
1136         nxge_hw.h               \
1137         nxge_impl.h             \
1138         nxge_ipp.h              \
1139         nxge_ipp_hw.h           \
1140         nxge_mac.h              \
1141         nxge_mac_hw.h           \
1142         nxge_fflp.h             \
1143         nxge_fflp_hw.h          \
1144         nxge_mii.h              \
1145         nxge_rxdma.h            \
1146         nxge_rxdma_hw.h         \
1147         nxge_txc.h              \
1148         nxge_txc_hw.h           \
1149         nxge_txdma.h            \
1150         nxge_txdma_hw.h         \
1151         nxge_virtual.h          \
1152         nxge_espc.h
1153 
1154 include Makefile.syshdrs
1155 
1156 dcam/%.check:   dcam/%.h
1157         $(DOT_H_CHECK)
1158 
1159 CHECKHDRS=                                              \
1160         $($(MACH)_HDRS:%.h=%.check)                     \
1161         $(AUDIOHDRS:%.h=audio/%.check)                  \
1162         $(AVHDRS:%.h=av/%.check)                        \
1163         $(BSCHDRS:%.h=%.check)                          \
1164         $(CHKHDRS:%.h=%.check)                          \
1165         $(CPUDRVHDRS:%.h=%.check)                       \
1166         $(CRYPTOHDRS:%.h=crypto/%.check)                \
1167         $(DCAMHDRS:%.h=dcam/%.check)                    \
1168         $(FC4HDRS:%.h=fc4/%.check)                      \
1169         $(FCHDRS:%.h=fibre-channel/%.check)             \
1170         $(FCIMPLHDRS:%.h=fibre-channel/impl/%.check)    \
1171         $(FCULPHDRS:%.h=fibre-channel/ulp/%.check)      \
1172         $(IBHDRS:%.h=ib/%.check)                        \
1173         $(IBDHDRS:%.h=ib/clients/ibd/%.check)           \
1174         $(IBTLHDRS:%.h=ib/ibtl/%.check)                 \
1175         $(IBTLIMPLHDRS:%.h=ib/ibtl/impl/%.check)        \
1176         $(IBNEXHDRS:%.h=ib/ibnex/%.check)       \
1177         $(IBMGTHDRS:%.h=ib/mgt/%.check)                 \
1178         $(IBMFHDRS:%.h=ib/mgt/ibmf/%.check)             \
1179         $(OFHDRS:%.h=ib/clients/of/%.check)                     \
1180         $(RDMAHDRS:%.h=ib/clients/of/rdma/%.check)              \
1181         $(SOL_UVERBSHDRS:%.h=ib/clients/of/sol_uverbs/%.check)  \
1182         $(SOL_UCMAHDRS:%.h=ib/clients/of/sol_ucma/%.check)      \
1183         $(SOL_OFSHDRS:%.h=ib/clients/of/sol_ofs/%.check)        \
1184         $(TAVORHDRS:%.h=ib/adapters/tavor/%.check)      \
1185         $(HERMONHDRS:%.h=ib/adapters/hermon/%.check)    \
1186         $(MLNXHDRS:%.h=ib/adapters/%.check)             \
1187         $(IDMHDRS:%.h=idm/%.check)                      \
1188         $(ISCSIHDRS:%.h=iscsi/%.check)                  \
1189         $(ISCSITHDRS:%.h=iscsit/%.check)                        \
1190         $(ISOHDRS:%.h=iso/%.check)                      \
1191         $(FMHDRS:%.h=fm/%.check)                        \
1192         $(FMFSHDRS:%.h=fm/fs/%.check)                   \
1193         $(FMIOHDRS:%.h=fm/io/%.check)                   \
1194         $(FSHDRS:%.h=fs/%.check)                        \
1195         $(LVMHDRS:%.h=lvm/%.check)                      \
1196         $(PCMCIAHDRS:%.h=pcmcia/%.check)                \
1197         $(SCSIHDRS:%.h=scsi/%.check)                    \
1198         $(SCSIADHDRS:%.h=scsi/adapters/%.check)         \
1199         $(SCSICONFHDRS:%.h=scsi/conf/%.check)           \
1200         $(SCSIIMPLHDRS:%.h=scsi/impl/%.check)           \
1201         $(SCSIISCSIHDRS:%.h=scsi/adapters/%.check)      \
1202         $(SCSIGENHDRS:%.h=scsi/generic/%.check)         \
1203         $(SCSITARGETSHDRS:%.h=scsi/targets/%.check)     \
1204         $(SCSIVHCIHDRS:%.h=scsi/adapters/%.check)       \
1205         $(SATAGENHDRS:%.h=sata/%.check)                 \
1206         $(SDCARDHDRS:%.h=sdcard/%.check)                \
1207         $(SYSEVENTHDRS:%.h=sysevent/%.check)            \
1208         $(CONTRACTHDRS:%.h=contract/%.check)            \
1209         $(USBAUDHDRS:%.h=usb/clients/audio/%.check)   \
1210         $(USBHUBDHDRS:%.h=usb/hubd/%.check)             \
1211         $(USBHIDHDRS:%.h=usb/clients/hid/%.check)       \
1212         $(USBHWARCHDRS:%.h=usb/clients/hwarc/%.check)   \
1213         $(USBMSHDRS:%.h=usb/clients/mass_storage/%.check)       \
1214         $(USBPRNHDRS:%.h=usb/clients/printer/%.check)   \
1215         $(USBCDCHDRS:%.h=usb/clients/usbcdc/%.check)    \
1216         $(USBVIDHDRS:%.h=usb/clients/video/usbvc/%.check)   \
1217         $(USBWCMHDRS:%.h=usb/clients/usbinput/usbwcm/%.check)   \
1218         $(UGENHDRS:%.h=usb/clients/ugen/%.check)   \
1219         $(USBHDRS:%.h=usb/%.check)                      \
1220         $(UWBHDRS:%.h=uwb/%.check)                      \
1221         $(UWBAHDRS:%.h=uwb/uwba/%.check)                      \
1222         $(I1394HDRS:%.h=1394/%.check)                   \
1223         $(RSMHDRS:%.h=rsm/%.check)                      \
1224         $(TSOLHDRS:%.h=tsol/%.check)                    \
1225         $(NXGEHDRS:%.h=nxge/%.check)
1226 
1227 
1228 .KEEP_STATE:
1229 
1230 .PARALLEL:                      \
1231         $(CHECKHDRS)            \
1232         $(ROOTHDRS)             \
1233         $(ROOTAUDHDRS)          \
1234         $(ROOTAVHDRS)           \
1235         $(ROOTCRYPTOHDRS)       \
1236         $(ROOTDCAMHDRS)         \
1237         $(ROOTISOHDRS)          \
1238         $(ROOTIDMHDRS)          \
1239         $(ROOTISCSIHDRS)        \
1240         $(ROOTISCSITHDRS)       \
1241         $(ROOTFC4HDRS)          \
1242         $(ROOTFCHDRS)           \
1243         $(ROOTFCIMPLHDRS)       \
1244         $(ROOTFCULPHDRS)        \
1245         $(ROOTFMHDRS)           \
1246         $(ROOTFMIOHDRS)         \
1247         $(ROOTFMFSHDRS)         \
1248         $(ROOTFSHDRS)           \
1249         $(ROOTIBDHDRS)          \
1250         $(ROOTIBHDRS)           \
1251         $(ROOTIBTLHDRS)         \
1252         $(ROOTIBTLIMPLHDRS)     \
1253         $(ROOTIBNEXHDRS)        \
1254         $(ROOTIBMGTHDRS)        \
1255         $(ROOTIBMFHDRS)         \
1256         $(ROOTOFHDRS)           \
1257         $(ROOTRDMAHDRS)         \
1258         $(ROOTSOL_OFSHDRS)      \
1259         $(ROOTSOL_UMADHDRS)     \
1260         $(ROOTSOL_UVERBSHDRS)   \
1261         $(ROOTSOL_UCMAHDRS)     \
1262         $(ROOTTAVORHDRS)        \
1263         $(ROOTHERMONHDRS)       \
1264         $(ROOTMLNXHDRS)         \
1265         $(ROOTLVMHDRS)          \
1266         $(ROOTPCMCIAHDRS)       \
1267         $(ROOTSCSIHDRS)         \
1268         $(ROOTSCSIADHDRS)       \
1269         $(ROOTSCSICONFHDRS)     \
1270         $(ROOTSCSIISCSIHDRS)    \
1271         $(ROOTSCSIGENHDRS)      \
1272         $(ROOTSCSIIMPLHDRS)     \
1273         $(ROOTSCSIVHCIHDRS)     \
1274         $(ROOTSDCARDHDRS)       \
1275         $(ROOTSYSEVENTHDRS)     \
1276         $(ROOTCONTRACTHDRS)     \
1277         $(ROOTUSBHDRS)          \
1278         $(ROOTUWBHDRS)          \
1279         $(ROOTUWBAHDRS)         \
1280         $(ROOTUSBAUDHDRS)       \
1281         $(ROOTUSBHUBDHDRS)      \
1282         $(ROOTUSBHIDHDRS)       \
1283         $(ROOTUSBHRCHDRS)       \
1284         $(ROOTUSBMSHDRS)        \
1285         $(ROOTUSBPRNHDRS)       \
1286         $(ROOTUSBCDCHDRS)       \
1287         $(ROOTUSBVIDHDRS)       \
1288         $(ROOTUSBWCMHDRS)       \
1289         $(ROOTUGENHDRS)         \
1290         $(ROOT1394HDRS)         \
1291         $(ROOTHOTPLUGHDRS)      \
1292         $(ROOTHOTPLUGPCIHDRS)   \
1293         $(ROOTRSMHDRS)          \
1294         $(ROOTTSOLHDRS)         \
1295         $($(MACH)_ROOTHDRS)
1296 
1297 
1298 install_h:                      \
1299         $(ROOTDIRS)             \
1300         LVMDERIVED_H            \
1301         .WAIT                   \
1302         $(ROOTHDRS)             \
1303         $(ROOTAUDHDRS)          \
1304         $(ROOTAVHDRS)           \
1305         $(ROOTCRYPTOHDRS)       \
1306         $(ROOTDCAMHDRS)         \
1307         $(ROOTISOHDRS)          \
1308         $(ROOTIDMHDRS)          \
1309         $(ROOTISCSIHDRS)        \
1310         $(ROOTISCSITHDRS)       \
1311         $(ROOTFC4HDRS)          \
1312         $(ROOTFCHDRS)           \
1313         $(ROOTFCIMPLHDRS)       \
1314         $(ROOTFCULPHDRS)        \
1315         $(ROOTFMHDRS)           \
1316         $(ROOTFMFSHDRS)         \
1317         $(ROOTFMIOHDRS)         \
1318         $(ROOTFSHDRS)           \
1319         $(ROOTIBDHDRS)          \
1320         $(ROOTIBHDRS)           \
1321         $(ROOTIBTLHDRS)         \
1322         $(ROOTIBTLIMPLHDRS)     \
1323         $(ROOTIBNEXHDRS)        \
1324         $(ROOTIBMGTHDRS)        \
1325         $(ROOTIBMFHDRS)         \
1326         $(ROOTOFHDRS)           \
1327         $(ROOTRDMAHDRS)         \
1328         $(ROOTSOL_OFSHDRS)      \
1329         $(ROOTSOL_UMADHDRS)     \
1330         $(ROOTSOL_UVERBSHDRS)   \
1331         $(ROOTSOL_UCMAHDRS)     \
1332         $(ROOTTAVORHDRS)        \
1333         $(ROOTHERMONHDRS)       \
1334         $(ROOTMLNXHDRS)         \
1335         $(ROOTLVMHDRS)          \
1336         $(ROOTPCMCIAHDRS)       \
1337         $(ROOTSCSIHDRS)         \
1338         $(ROOTSCSIADHDRS)       \
1339         $(ROOTSCSIISCSIHDRS)    \
1340         $(ROOTSCSICONFHDRS)     \
1341         $(ROOTSCSIGENHDRS)      \
1342         $(ROOTSCSIIMPLHDRS)     \
1343         $(ROOTSCSIVHCIHDRS)     \
1344         $(ROOTSDCARDHDRS)       \
1345         $(ROOTSYSEVENTHDRS)     \
1346         $(ROOTCONTRACTHDRS)     \
1347         $(ROOTUWBHDRS)          \
1348         $(ROOTUWBAHDRS)         \
1349         $(ROOTUSBHDRS)          \
1350         $(ROOTUSBAUDHDRS)       \
1351         $(ROOTUSBHUBDHDRS)      \
1352         $(ROOTUSBHIDHDRS)       \
1353         $(ROOTUSBHRCHDRS)       \
1354         $(ROOTUSBMSHDRS)        \
1355         $(ROOTUSBPRNHDRS)       \
1356         $(ROOTUSBCDCHDRS)       \
1357         $(ROOTUSBVIDHDRS)       \
1358         $(ROOTUSBWCMHDRS)       \
1359         $(ROOTUGENHDRS)         \
1360         $(ROOT1394HDRS)         \
1361         $(ROOTHOTPLUGHDRS)      \
1362         $(ROOTHOTPLUGPCIHDRS)   \
1363         $(ROOTRSMHDRS)          \
1364         $(ROOTTSOLHDRS)         \
1365         $($(MACH)_ROOTHDRS)
1366 
1367 all_h: $(GENHDRS)
1368 
1369 priv_const.h: $(PRIVS_AWK) $(PRIVS_DEF)
1370         $(NAWK) -f $(PRIVS_AWK) < $(PRIVS_DEF) -v privhfile=$@
1371 
1372 priv_names.h: $(PRIVS_AWK) $(PRIVS_DEF)
1373         $(NAWK) -f $(PRIVS_AWK) < $(PRIVS_DEF) -v pubhfile=$@
1374 
1375 usb/usbdevs.h: $(USBDEVS_AWK) $(USBDEVS_DATA)
1376         $(NAWK) -f $(USBDEVS_AWK) $(USBDEVS_DATA) -H > $@
1377 
1378 LVMDERIVED_H:
1379         cd $(SRC)/uts/common/sys/lvm; pwd; $(MAKE)
1380 
1381 clean:
1382         $(RM) $(GENHDRS)
1383 
1384 clobber:        clean
1385 
1386 check:  $(CHECKHDRS)
1387 
1388 FRC:
1389 
1390 # EXPORT DELETE START
1391 EXPORT_SRC:
1392         $(RM) wanboot_impl.h+ Makefile+
1393         sed -e "/EXPORT DELETE START/,/EXPORT DELETE END/d" \
1394                 < wanboot_impl.h > wanboot_impl.h+
1395         $(MV) wanboot_impl.h+ wanboot_impl.h
1396         sed -e "/^# EXPORT DELETE START/,/^# EXPORT DELETE END/d" \
1397                 < Makefile > Makefile+
1398         $(RM) Makefile
1399         $(MV) Makefile+ Makefile
1400         $(CHMOD) 444 Makefile wanboot_impl.h
1401 # EXPORT DELETE END